Multiple Switch-case problem

2 次查看(过去 30 天)
Corrado Giuliani
Corrado Giuliani 2013-12-10
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 个)

类别

Help CenterFile Exchange 中查找有关 Simulink 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by