Register to reply 
Building a matrix using while loops? (MATLAB) 
Share this thread: 
#1
Feb810, 05:43 AM

P: 1,212

Hello
Here is my code:
My code is only calculating the first row of S, ie. S(2,1) = 0 still. I don't know why the program is ending without adding 1 onto i and repeating the loop, I can only imagine the "while" loop is the wrong way of going about this? Thanks for any help, Mike 


#2
Feb810, 09:52 AM

Mentor
P: 21,256

A better choice is a for loop for each of your loops.



Register to reply 
Related Discussions  
Help me design my carputer to work in the cold (advice on building a heater)  Computing & Technology  10  
Building a hybrid and dynamic mathematical space  Math & Science Software  0  
New Loll The Art of Building Spacetime (Oriti's book)  Beyond the Standard Model  0  
Building a hybrid and dynamic mathematical space  Math & Science Software  0  
The Duel: Strings versus Loops by Rudy Vaas  Beyond the Standard Model  9 