How to set flags in MATLAB?
48 次查看(过去 30 天)
显示 更早的评论
How to set flags in MATLAB ,,
flag1=0;
Do this;
flag2=1;
Do this;
1 个评论
Jan
2013-1-4
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.
回答(2 个)
Muruganandham Subramanian
2013-1-4
编辑:Muruganandham Subramanian
2013-1-4
Do this, by if() operation
e.g.
if a==0
%do this
else if a==1
%do this
end
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!