How to run a for-loop multiple times?

8 views (last 30 days)
Brooke Gest
Brooke Gest on 19 Apr 2019
Answered: madhan ravi on 19 Apr 2019
Hey guys!!! I am new to MATLAB and I was wondering how I can run a for-loop 100 times. I just need a very basic answer; I don't want to post the entire code because it is for homework but I just need help figuring out the general concept. Thanks!!!

Answers (1)

madhan ravi
madhan ravi on 19 Apr 2019
for k=1:100
for ...
% some operation
end
end

Categories

Find more on Interactive Control and Callbacks in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!