how to do looping with over many variables ? (MONTE CARLO)

2 views (last 30 days)
Hey, very new to matlab. What command should I use to loop over many variables ? e.g. n=3,4,5,.....100. Thanks.

Accepted Answer

KSSV
KSSV on 19 Nov 2020
for n = 3:100
n
end
  11 Comments
Jardine Shi
Jardine Shi on 19 Nov 2020
yeap, I just found it. I just need to put xlim or ylim on the last line hahaha
KSSV
KSSV on 19 Nov 2020
axis works for both the limits at once...._xlim_, ylim is to fix seperately.
And thanks is accepting/ voting the answer. :)

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!