How to set flags in MATLAB?

45 Ansichten (letzte 30 Tage)
Arun Badigannavar
Arun Badigannavar am 4 Jan. 2013
How to set flags in MATLAB ,,
flag1=0;
Do this;
flag2=1;
Do this;
  1 Kommentar
Jan
Jan am 4 Jan. 2013
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.

Melden Sie sich an, um zu kommentieren.

Antworten (2)

Muruganandham Subramanian
Muruganandham Subramanian am 4 Jan. 2013
Bearbeitet: Muruganandham Subramanian am 4 Jan. 2013
Do this, by if() operation
e.g.
if a==0
%do this
else if a==1
%do this
end
  1 Kommentar
Arun Badigannavar
Arun Badigannavar am 4 Jan. 2013
this is common for loop,,but i want to control it from gui ,by setting a flag

Melden Sie sich an, um zu kommentieren.


Walter Roberson
Walter Roberson am 4 Jan. 2013

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by