How to set flags in MATLAB?

How to set flags in MATLAB ,,
flag1=0;
Do this;
flag2=1;
Do this;

1 comentario

Jan
Jan el 4 de En. de 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.

Iniciar sesión para comentar.

Respuestas (2)

Muruganandham Subramanian
Muruganandham Subramanian el 4 de En. de 2013
Editada: Muruganandham Subramanian el 4 de En. de 2013

0 votos

Do this, by if() operation
e.g.
if a==0
%do this
else if a==1
%do this
end

1 comentario

Arun Badigannavar
Arun Badigannavar el 4 de En. de 2013
this is common for loop,,but i want to control it from gui ,by setting a flag

Iniciar sesión para comentar.

Categorías

Más información sobre Source Control en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 4 de En. de 2013

Community Treasure Hunt

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

Start Hunting!

Translated by