How to set flags in MATLAB?

How to set flags in MATLAB ,,
flag1=0;
Do this;
flag2=1;
Do this;

댓글 수: 1

Jan
Jan 2013년 1월 4일
The question is not clear yet. The shown code runs without problems, but I guess you want to get a specific behavior but did not explain this.

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

답변 (2개)

Muruganandham Subramanian
Muruganandham Subramanian 2013년 1월 4일
편집: Muruganandham Subramanian 2013년 1월 4일

0 개 추천

Do this, by if() operation
e.g.
if a==0
%do this
else if a==1
%do this
end

댓글 수: 1

Arun Badigannavar
Arun Badigannavar 2013년 1월 4일
this is common for loop,,but i want to control it from gui ,by setting a flag

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

카테고리

도움말 센터File Exchange에서 Source Control에 대해 자세히 알아보기

태그

질문:

2013년 1월 4일

Community Treasure Hunt

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

Start Hunting!

Translated by