注册 登录
编程论坛 Matlab

[求助]matlab的switch语句

chenmingvacuum 发布于 2006-07-31 14:44, 1147 次点击
val = get(hobject,'Value');
str = get(hobject,'String');
switch str{val}
case 'peak' % User selects peaks
handles.current_data = handles.peaks;
case 'membrane' % User selects membrane
handles.current_data = handles.membrane;
case 'sinc' % User selects sinc
handles.current_data = handles.sinc;
end
帮我看一下str{val}是什么意思?
0 回复
1