Azzera filtri
Azzera filtri

How to set flags in MATLAB?

57 visualizzazioni (ultimi 30 giorni)
Arun Badigannavar
Arun Badigannavar il 4 Gen 2013
How to set flags in MATLAB ,,
flag1=0;
Do this;
flag2=1;
Do this;
  1 Commento
Jan
Jan il 4 Gen 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.

Accedi per commentare.

Risposte (2)

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

Accedi per commentare.


Walter Roberson
Walter Roberson il 4 Gen 2013

Categorie

Scopri di più su Get Started with MATLAB in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by