What should i use if i dont want to perform any operation?
Show older comments
I'm using if, elseif, else conditions...what should I use if for a certain conditions I don't want to perform any operation?....for example:
if condition1
operation1
elseif condition2
no operation
else
operation3
end
so, what code should I use to perform no operation...can any one help?
Accepted Answer
More Answers (1)
Thorsten
on 28 Jun 2015
You can rewrite your if-clause as
if condition1
operation1
elseif ~condition2
operation3
end
Categories
Find more on Image Arithmetic 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!