GMgKe586q6suSQnyqZLlGCooeWM
Learn To Program
Increase Your Knowlegde and Build Your Skill!
Pages
Home
Me
Search
Wednesday, December 22, 2010
Looping In Matlab
For do looping in Matlab, type:
>> for i=0:20 % do looping for 0 till 20
disp(i)
end
>> for i=0:2:20 % do looping for 0 till 20 step 2
disp(i)
end
For while looping, do:
>> i = 0;
>> while (i<10)
disp(i)
i = i + 1;
end
Looping In Matlab
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment