Effacer les filtres
Effacer les filtres

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

2 vues (au cours des 30 derniers jours)
Jardine Shi
Jardine Shi le 19 Nov 2020
Commenté : KSSV le 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.

Réponse acceptée

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

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by