Borrar filtros
Borrar filtros

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

2 visualizaciones (últimos 30 días)
Jardine Shi
Jardine Shi el 19 de Nov. de 2020
Comentada: KSSV el 19 de Nov. de 2020
Hey, very new to matlab. What command should I use to loop over many variables ? e.g. n=3,4,5,.....100. Thanks.

Respuesta aceptada

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

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by