How to set flags in MATLAB?
Show older comments
How to set flags in MATLAB ,,
flag1=0;
Do this;
flag2=1;
Do this;
1 Comment
Jan
on 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.
Answers (2)
Muruganandham Subramanian
on 4 Jan 2013
Edited: Muruganandham Subramanian
on 4 Jan 2013
Do this, by if() operation
e.g.
if a==0
%do this
else if a==1
%do this
end
1 Comment
Arun Badigannavar
on 4 Jan 2013
Categories
Find more on Source Control in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!