About Site Map Submit Contact Us Log in | Create an account
Create an account Log In
Average Rating
User Rating:
Visitors Rating:
My rating:

Write review
  • License: Freeware
  • Last update: 5 years ago
  • Total downloads: 69
  • Price: Free |
  • Operating system: Linux, Mac OS X, Win All, BSD, Solaris
  • Publisher: Matt Caywoo
See full specifications

scripts default iconParameter Iterator (paramiterator) (Scripts) Publisher's description

Flattens arbitrarily nested loops into a single loop that iterates over all combinations of loop parameters.

Flattens arbitrarily nested loops into a single loop that iterates over all combinations of loop parameters.

Makes it very easy to change the iteration parameters without rewriting loops, reindenting code, updating indices, etc.

Very convenient for simulation problems where the parameters being tested frequently change, but the computation stays the same.

Nested loop code like this:

avalues = [1 2]; bvalues = [10 20]; cvalues = [100 200 300];
for ai = 1:length(avalues)
for bi = 1:length(bvalues)
for ci = 1:length(cvalues)
scoretable(ai,bi,ci) = avalues(ai) + bvalues(bi) + cvalues(ci);

Can be flattened into this, and any parameter can be added or removed by changing only paramvariables and paramvalues:

paramvariables = {'A' 'B' 'C'};
paramvalues = { {1 2} {10 20} {100 200 300}};
piter = paramiterator(paramvariables,paramvalues);
for i = 1:length(piter)
scorelist(i) = A + B + C;
scoretable = listtotable(piter,scorelist);

Results can be easily displayed with displaytable (http://www.mathworks.com/matlabcentral/fil...20-displaytable).

You can now test whether a parameter has changed since the last iteration, before running some computation. This is like nesting the computation within only some of the loops, making paramiterator a full replacement for nested loops.

System Requirements:

MATLAB 7.6 (R2008a)
Program Release Status: New Release
Program Install Support: Install and Uninstall

Is Parameter Iterator (paramiterator) (Scripts) your software?

Manage your software

Most Popular

scripts default icon ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation 1.1
ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation contain several functions for digital modulation simulation
scripts default icon Simulink Communication Labs 1.1
Simulink Communication Labs allows you to learn communication systems in greater depth.
scripts default icon M-QAM modulation and demodulation 1.1
M-QAM modulation and demodulation is the QAM modulation and demodulation tech.
scripts default icon LZW Compression/Decompression 1.1
LZW Compression/Decompression - Updated LZW compressor and decompressor with reasonable performance
scripts default icon InSPIRE utility to plot a 2D displacement field (Scripts) 1.0
This program plots the deformation field (displace vectors) contained in vector.txt.