Recent content by Jan Skacel
-
J
MATLAB MATLAB: Program Unknown # of 'for' Loops w/ i1,i2,iN Variables Smartly
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...- Jan Skacel
- Post #5
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
J
MATLAB MATLAB: Program Unknown # of 'for' Loops w/ i1,i2,iN Variables Smartly
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'...- Jan Skacel
- Post #3
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
J
MATLAB MATLAB: Program Unknown # of 'for' Loops w/ i1,i2,iN Variables Smartly
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), ...- Jan Skacel
- Thread
- Loops Matlab Program Variables
- Replies: 4
- Forum: MATLAB, Maple, Mathematica, LaTeX