MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply TodayMATLAB Central > MATLAB Newsreader > Avoiding for loop 


Hi, 
Hi, 
Stefan wrote: 
"Stefan " <aidematlab@yahoo.ca> wrote in message <i2cpf0$j3k$1@fred.mathworks.com>... 
thx for these remarks. 

You could rewrite it as: 
You are both right, compute expm(B) outside the loop first. However, I need all the values of V. a<= x1,x2,x3,x4 <=a, where a can be any integer. 
"Stefan " <aidematlab@yahoo.ca> wrote in message <i2csjm$b49$1@fred.mathworks.com>... 
"Stefan " <aidematlab@yahoo.ca> wrote in message <i2csjm$b49$1@fred.mathworks.com>... 
Thx for the solution without the for loops. 
"Stefan " <aidematlab@yahoo.ca> wrote in message <i2h6j8$659$1@fred.mathworks.com>... 
On 7/23/2010 2:10 PM, Stefan wrote: 
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.