Multiple Switch-case problem
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi, i have an m.file with 6 switch-case like so
if true
% code
end
switch value
case 'tptk'
switch actionpre
case 'rn'
switch texture
case 'fd'
switch pos
case 'ip'
switch opponumber
case 'hu'
evaluation=' No info yet.';
case 'multiway'
evaluation=' No info yet.';
end
case 'oop'
switch opponumber
case 'hu'
evaluation=' No info yet.';
case 'multiway'
evaluation=' No info yet.';
end
The inputs for each switch come from a multiple choice GUI. The problem is that if i do each switch case separately, for example in the command window, i get to the result. Instead, if i run the entire code (quite massive, each switch-case is from 2 to 11 choices), it stops at some point without giving me the solution. Any help?
Regards,
Corrado
0 Kommentare
Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!