Switch case inside of another switch case
Mostra commenti meno recenti
How can i put a switch case inside of another switch case?
Risposte (1)
Sean de Wolski
il 30 Dic 2014
x = 2;
y = 3;
switch x
case 1
disp 1
case 2
switch y
case 2
disp Ha!
case 3
disp HaHa!
otherwise
disp Nah
end
end
1 Commento
Categorie
Scopri di più su MATLAB Report Generator in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!