Effacer les filtres
Effacer les filtres

How to set flags in MATLAB?

57 vues (au cours des 30 derniers jours)
Arun Badigannavar
Arun Badigannavar le 4 Jan 2013
How to set flags in MATLAB ,,
flag1=0;
Do this;
flag2=1;
Do this;
  1 commentaire
Jan
Jan le 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.

Connectez-vous pour commenter.

Réponses (2)

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

Connectez-vous pour commenter.


Walter Roberson
Walter Roberson le 4 Jan 2013

Catégories

En savoir plus sur Get Started with MATLAB dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by