Jumping over several loops

1 vue (au cours des 30 derniers jours)
Sabine Merzoug
Sabine Merzoug le 25 Fév 2020
Modifié(e) : Sabine Merzoug le 25 Fév 2020
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

Réponses (1)

ME
ME le 25 Fév 2020

Catégories

En savoir plus sur Loops and Conditional Statements dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by