exiting code if condition is met

4 views (last 30 days)
Max
Max on 11 Nov 2015
Commented: Thorsten on 12 Nov 2015
I have written a bunch of code but I would like to ignore it if and a condition is met. so for
if length(dict)=1
newguess=dict
end
%bunch of code
I want to ignore all that code if my if statement is met and just stop if length(dict)=1

Accepted Answer

Thorsten
Thorsten on 11 Nov 2015
if length(dict)=1
newguess=dict
else
%bunch of code
end
  3 Comments

Sign in to comment.

More Answers (0)

Categories

Find more on MATLAB 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!