Oh.
That's a bummer. But now it seems so obvious. Ok then.
I would still like to know how to write those loops, just for the sake of learning MATLAB and well.. feeling like I have the answer for question that has been bothering me for hours.
But mainly I have to dig into the theory of those...
So the purpose would be for situations when you have several mixtures, each with different percentage of ingredients and you are trying to find out one mixture (or rather mixture of mixtures) closest to target value of ingredients in it.
Example would be meals - you have several 'mixtures'...
Hi :)
I need to program several nested 'for' loops which differs only in index of their variables inside.
So I need to convert this:
for i1 = 1000:-d:0
for i2 = (1000-(d*i1):-d:0
...
for in = (1000-(d*in-1):-d:0
some function containing all index variables like:
b=(i1*A( :,2), i2*A( :,3), ...