⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dmyinfy.m

📁 详细介绍了Mathlab的使用方法与技巧
💻 M
字号:
%**********************
%模型信息
windinfy=figure('color',[1,1,1],'position',[0.1*winw,0.1*winh,0.8*winw,0.8*winh],...
       'name','离散控制系统Z域模型信息','numbertitle','off','menubar','none',...
        'resize','off','clipping','off');
color=[0.2;.6;.1];
uicontrol('style','frame','position',[0,0,1,1],...
   'units','normalized','backgroundcolor',color);
color=[.3;1;0.7];
pos=[0.03,0.95,0.32,0.03];
showtext(pos,color,'当前离散系统开环状态空间');
color=[1;.5;0.7];
uicontrol('style','frame','position',[0.03,0.73,.94,.21],...
   'units','normalized','backgroundcolor',color);
color=[0.8;0.8;0.8];
pos=[0.04,0.89,0.06,0.04];
showtext(pos,color,'DA:');
pos=[0.04,0.84,0.06,0.04];
showtext(pos,color,'DB:');
pos=[0.04,0.79,0.06,0.04];
showtext(pos,color,'DC:');
pos=[0.04,0.74,0.06,0.04];
showtext(pos,color,'DD:');
%$$$$$$$$$$$$$$$$$$$
color=[.3;1;0.7];
pos=[0.03,0.68,0.32,0.03];
showtext(pos,color,'当前离散系统闭环传递函数');
color=[1;.5;0.7];
uicontrol('style','frame','position',[0.03,0.56,.94,.11],...
   'units','normalized','backgroundcolor',color);
color=[0.8;0.8;0.8];
pos=[0.04,0.62,0.07,0.04];
showtext(pos,color,'分子:');
pos=[0.04,0.57,0.07,0.04];
showtext(pos,color,'分母:');
%##################
color=[.3;1;0.7];
pos=[0.03,0.51,0.32,0.03];
showtext(pos,color,'当前离散系统开环传递函数');
color=[1;.5;0.7];
uicontrol('style','frame','position',[0.03,0.39,.94,.11],...
   'units','normalized','backgroundcolor',color);
color=[0.8;0.8;0.8];
pos=[0.04,0.45,0.07,0.04];
showtext(pos,color,'分子:');
pos=[0.04,0.4,0.07,0.04];
showtext(pos,color,'分母:');
%##########################
color=[.3;1;0.7];
pos=[0.03,0.34,0.32,0.03];
showtext(pos,color,'当前离散系统前向通道传递函数');
color=[1;.5;0.7];
uicontrol('style','frame','position',[0.03,0.22,.94,.11],...
   'units','normalized','backgroundcolor',color);
color=[0.8;0.8;0.8];
pos=[0.04,0.28,0.07,0.04];
showtext(pos,color,'分子:');
pos=[0.04,0.23,0.07,0.04];
showtext(pos,color,'分母:');
%$$$$$$$$$$$$$$$$$$
color=[.3;1;0.7];
pos=[0.03,0.17,0.32,0.03];
showtext(pos,color,'当前离散系统反馈回路传递函数');
color=[1;.5;0.7];
uicontrol('style','frame','position',[0.03,0.05,.94,.11],...
   'units','normalized','backgroundcolor',color);
color=[0.8;0.8;0.8];
pos=[0.04,0.11,0.07,0.04];
showtext(pos,color,'分子:');
pos=[0.04,0.06,0.07,0.04];
showtext(pos,color,'分母:');
color=[.3;1;0.7];
pos=[0.03,0.01,0.1,0.03];
showtext(pos,color,'采样周期');
color=[1;.5;0.7];
uicontrol('style','frame','position',[0.15,0.003,.24,.04],...
   'units','normalized','backgroundcolor',color);
%color=[0.8;0.8;0.8];
%pos=[0.04,0.06,0.07,0.04];
%******************
color=[0.8;0.8;0.8];
uicontrol(windinfy,'style','edit','pos',[0.11,0.89,0.85,0.04],...
        'string',mat2str(dak),'back',[0.9,0.9,0.9],'units','normalized');
pos=[0.11,0.84,0.85,0.04];showtext(pos,color,mat2str(dbk));
pos=[0.11,0.79,0.85,0.04];showtext(pos,color,mat2str(dck));
pos=[0.11,0.74,0.85,0.04];showtext(pos,color,mat2str(ddk));
pos=[0.12,0.62,0.84,0.04];showtext(pos,color,mat2str(dfbnum));
pos=[0.12,0.57,0.84,0.04];showtext(pos,color,mat2str(dfbden));
pos=[0.12,0.45,0.84,0.04];showtext(pos,color,mat2str(dfknum));
pos=[0.12,0.4,0.84,0.04];showtext(pos,color,mat2str(dfkden));
pos=[0.12,0.28,0.84,0.04];showtext(pos,color,mat2str(dktanum));
pos=[0.12,0.23,0.84,0.04];showtext(pos,color,mat2str(dktaden));
pos=[0.12,0.11,0.84,0.04];showtext(pos,color,mat2str(dhffnum));
pos=[0.12,0.06,0.84,0.04];showtext(pos,color,mat2str(dhffden));
pos=[0.16,0.01,0.22,0.03];showtext(pos,color,mat2str(dhT));
%@@@@@@@@@@@@@@@@@@
uicontrol(windinfy,'style','push','string','Ok',...
       'position',[0.44,0.005,0.13,0.04],'units','normalized',...
      'callback','close(windinfy)');

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -