matlab可能未使用函数callback 什么鬼 20
%---Executesonselectionchangeinpopupmenu1.functionpopupmenu1_Callback(~,~,handles)A=g...
% --- Executes on selection change in popupmenu1.
function popupmenu1_Callback(~, ~, handles)
A=get(handles.listbox1,'value');
global B
switch A
case '1挡'
B=5.56;
case'2挡'
B=2.769;
case'3挡'
B=1.644;
case'4挡'
B=1.00;
case'5挡'
B=0.793;
end 展开
function popupmenu1_Callback(~, ~, handles)
A=get(handles.listbox1,'value');
global B
switch A
case '1挡'
B=5.56;
case'2挡'
B=2.769;
case'3挡'
B=1.644;
case'4挡'
B=1.00;
case'5挡'
B=0.793;
end 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询