[求助]matlab的switch语句
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}是什么意思?