Multiple Switch-case problem
2 views (last 30 days)
Show older comments
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 Comments
Answers (0)
See Also
Categories
Find more on Geometric Transformation and Image Registration in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!