Multiple Switch-case problem

2 views (last 30 days)
Corrado Giuliani
Corrado Giuliani on 10 Dec 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

Answers (0)

Community Treasure Hunt

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

Start Hunting!