Filter löschen
Filter löschen

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

1 Ansicht (letzte 30 Tage)
Jardine Shi
Jardine Shi am 19 Nov. 2020
Kommentiert: KSSV am 19 Nov. 2020
Hey, very new to matlab. What command should I use to loop over many variables ? e.g. n=3,4,5,.....100. Thanks.

Akzeptierte Antwort

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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by