Multiple Switch-case problem

2 visualizzazioni (ultimi 30 giorni)
Corrado Giuliani
Corrado Giuliani il 10 Dic 2013
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

Risposte (0)

Categorie

Scopri di più su Simulink in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by