필터 지우기
필터 지우기

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

조회 수: 2 (최근 30일)
Jardine Shi
Jardine Shi 2020년 11월 19일
댓글: KSSV 2020년 11월 19일
Hey, very new to matlab. What command should I use to loop over many variables ? e.g. n=3,4,5,.....100. Thanks.

채택된 답변

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

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

태그

Community Treasure Hunt

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

Start Hunting!

Translated by