Azzera filtri
Azzera filtri

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

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

Risposta accettata

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

Accedi per commentare.

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by