I would like to iterate over multiple for-loops, but the amount of for-loops depends on the size of a vector. Is there a good way to do this, without using a lot of if-statements?
arr = [a1 a2 ... an]for a1=1:... for a2=1:... ... for an=1:... %do something
end endend
for for examle if the vector arr has "n" entries I would like to have "n" for loops.
Best Answer