Switch case inside of another switch case
31 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
How can i put a switch case inside of another switch case?
0 comentarios
Respuestas (1)
Sean de Wolski
el 30 de Dic. de 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 comentario
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!