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

📄 dmyconl.m

📁 详细介绍了Mathlab的使用方法与技巧
💻 M
字号:
dwindcont=figure('color',[1,0,1],'position',[0.25*winw,0.25*winh,0.5*winw,0.5*winh],...
       'name','离散闭环系统能控能观性及传递函数完全描述性','numbertitle','off','menubar','none',...
        'resize','off');
color=[0.2,0.6,0.1];
uicontrol('style','frame','position',[0,0,1,1],'units','normalized','backgroundcolor',color);
color=[0;0.8;1];
uicontrol('style','frame','position',[0.075,0.2,.85,.7],...
   'units','normalized','backgroundcolor',color);
pos=[0.15,0.72,0.09,0.04];
showtext(pos,color,'A阶数:');
pos=[0.3,0.72,0.25,0.04];
showtext(pos,color,'能控判断矩阵秩:');
pos=[0.58,0.72,0.25,0.04];
showtext(pos,color,'能观判断矩阵秩:');
dco=ctrb(da,db);dcb=obsv(da,dc);
drco=rank(dco);drcb=rank(dcb);
[dm dn]=size(da);
pos=[0.24,0.72,0.04,0.05];showtext(pos,color,mat2str(dm));
pos=[0.53,0.72,0.04,0.05];showtext(pos,color,mat2str(drco));
pos=[0.82,0.72,0.04,0.05];showtext(pos,color,mat2str(drcb));
if (drco==dn),if (drcb==dn),pos=[0.09,0.52,0.82,0.04];showtext(pos,color,'因为enable cortorl和enable observe判断矩阵的秩=DA的阶数');
                                  pos=[0.09,0.32,0.82,0.04];showtext(pos,color,'所以系统即能控又能观,同时传递函数是系统的完全描述');
                 else,pos=[0.09,0.52,0.82,0.04];showtext(pos,color,'因为enable observe判断矩阵的秩!=DA的阶数');
                         pos=[0.09,0.32,0.82,0.04];showtext(pos,color,'所以系统能控不能观,且传递函数不是系统的完全描述'); end;
else,if (drcb==dn),pos=[0.09,0.52,0.82,0.04];showtext(pos,color,'因为enable cortorl判断矩阵的秩!=DA的阶数');
                         pos=[0.09,0.32,0.82,0.04];showtext(pos,color,'所以系统不能控能观,且传递函数不是系统的完全描述');
        else,pos=[0.09,0.52,0.82,0.04];showtext(pos,color,'因为enable cortorl和enable observe判断矩阵的秩!=DA的阶数');
                pos=[0.09,0.32,0.82,0.04];showtext(pos,color,'所以系统不能控不能观,且传递函数不是系统的完全描述');end; end;
uicontrol(dwindcont,'style','push','string','Ok',...
       'position',[0.38,0.07,0.24,0.09],'units','normalized',...
      'callback','close(dwindcont)');

⌨️ 快捷键说明

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