How to set flags in MATLAB?

8 ビュー (過去 30 日間)
Arun Badigannavar
Arun Badigannavar 2013 年 1 月 4 日
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 日
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

サインインしてコメントする。


Walter Roberson
Walter Roberson 2013 年 1 月 4 日

カテゴリ

Help Center および File ExchangeSource Control についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by