Jumping over several loops

4 次查看(过去 30 天)
Sabine Merzoug
Sabine Merzoug 2020-2-25
Hi, I want to know how I can jump over several loops to the end of my code. or jump from one loop to another
if statement 1
action
else statement 2
if statement 3
action
else
statement 4
%jump to the end of the code, display 'answer'
if statement 5
%jump to statement 8
else statement 6
end
if statement 7
action
else statemment 8
end
end
end
answer

回答(1 个)

ME
ME 2020-2-25

类别

Help CenterFile Exchange 中查找有关 Loops and Conditional Statements 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by