?? dmystate.m
字號(hào):
getmodel1=figure('color',[1,1,1],'position',[0.2*winw,0.3*winh,0.6*winw,0.4*winh],...
'name','開(kāi)環(huán)離散系統(tǒng)狀態(tài)空間模型修改窗','numbertitle','off','menubar','none',...
'resize','off','clipping','off');
color=[0.7;0.7;0.7];
uicontrol('style','frame','position',[0,0,1,1],...
'units','normalized','backgroundcolor',color);
pos=[0.05,0.85,0.25,0.1];
showtext(pos,color,'采樣周期T:');
editt=uicontrol(getmodel1,'style','edit','pos',[0.26,0.88,0.65,0.1],...
'string',mat2str(dhT),'back',[0,1,1],'units','normalized');
pos=[0.04,0.75,0.25,0.1];
showtext(pos,color,'離散狀態(tài)矩陣DA:');
edita=uicontrol(getmodel1,'style','edit','pos',[0.26,0.76,0.65,0.1],...
'string',mat2str(dak),'back',[0,1,1],'units','normalized');
pos(2)=0.6;
showtext(pos,color,'離散輸入矩陣DB:');
editb=uicontrol(getmodel1,'style','edit','pos',[0.26,0.61,0.65,0.1],...
'string',mat2str(dbk),'back',[0,1,1],'units','normalized');
pos(2)=0.45;
showtext(pos,color,'離散輸出矩陣DC:');
editc=uicontrol(getmodel1,'style','edit','pos',[0.26,0.46,0.65,0.1],...
'string',mat2str(dck),'back',[0,1,1],'units','normalized');
pos(2)=0.3;
showtext(pos,color,'離散轉(zhuǎn)移矩陣DD:');
editd=uicontrol(getmodel1,'style','edit','pos',[0.26,0.31,0.65,0.1],...
'string',mat2str(ddk),'back',[0,1,1],'units','normalized');
uicontrol(getmodel1,'style','push','string','OK',...
'position',[0.23,0.1,0.2,0.12],'units','normalized',...
'callback','test=0;dkreal1;close(getmodel1);set(mmodel,''enable'',''on'');set(manalysis,''enable'',''on'');set(msave,''enable'',''on'');set(mdesign,''enable'',''on'');set(dmsimu,''enable'',''on'');set(dmchange,''enable'',''on'');set(dminfy,''enable'',''on'');set(msimu,''enable'',''off'');set(mchange,''enable'',''off'');set(minfy,''enable'',''off'');set(dsmys,''enable'',''off'');set(dcmchange,''enable'',''off'');set(dlminfy,''enable'',''off'');');
%uicontrol(getmodel1,'style','push','string','連續(xù)化',...
% 'position',[0.4,0.1,0.2,0.12],'units','normalized',...
% 'callback','test=0;dkrealsszs;set(mmodel,''enable'',''on'');set(manalysis,''enable'',''on'');set(msave,''enable'',''on'');set(mdesign,''enable'',''on'');set(dmsimu,''enable'',''on'');set(dmchange,''enable'',''on'');set(dminfy,''enable'',''on'');set(msimu,''enable'',''off'');set(mchange,''enable'',''off'');set(minfy,''enable'',''off'');set(dsmys,''enable'',''off'');set(dcmchange,''enable'',''off'');set(dlminfy,''enable'',''off'');');
uicontrol(getmodel1,'style','push','string','Cancel',...
'position',[0.57,0.1,0.2,0.12],'units','normalized',...
'callback','close(getmodel1)');
%set(dmsimu,'enable','on');
%set(dmchange,'enable','on');
%set(dminfy,'enable','on');
%set(msimu,'enable','off');
%set(mchange,'enable','off');
%set(minfy,'enable','off');
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -