How to set flags in MATLAB?

48 次查看(过去 30 天)
Arun Badigannavar
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
Do this, by if() operation
e.g.
if a==0
%do this
else if a==1
%do this
end
  1 个评论
Arun Badigannavar
this is common for loop,,but i want to control it from gui ,by setting a flag

请先登录,再进行评论。


Walter Roberson
Walter Roberson 2013-1-4

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by