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

📄 fig722.m

📁 realize analysis and design for computer-controlled system
💻 M
字号:
% Generates Fig 7.22% Computer Controlled Systems (3rd ed)% Author: B. Wittenmark% Last edit: 1997-07-09% Copyright (c) 1996 by K. J. 舠tr鰉, B. Wittenmark and% Department of Automatic Control, Lund Institute of% Technology, Lund, Swedenblock722;newplot;set(gcf,'PaperUnits','centimeters','PaperPosition',[2 2 13 10])set(gcf,'Units','centimeters','position',get(gcf,'PaperPosition'))lw=0.9;Ms=9;h=pi/2;%clf;[tc,xc,yc]=sim('block722',[0, 3.5*pi]);subplot(3,1,1);plot(tc,yc(:,4),'k','Linew',lw);hold onopt=simset('Outputpoints','specified');[t,x,y]=sim('block722',[0:h:3.5*pi],opt);hpl=plot(t,y(:,1),'m.');set(hpl,'Markersize',Ms)%title(['Fig 7.22']);axis([0,10,-1.5,1.5]);set(gca,'Fontsize',9,'Fontname','NewCenturySchlbk');set(gca,'xtick',[0 5 10]);set(gca,'ytick',[-1 0 1]);drawnow;%subplot(3,1,2);plot(tc,yc(:,5),'k','Linew',lw);hold onhpl=plot(t,y(:,2),'m.');set(hpl,'Markersize',Ms)axis([0,10,-1.5,1.5]);set(gca,'Fontsize',9,'Fontname','NewCenturySchlbk');set(gca,'xtick',[0 5 10]);set(gca,'ytick',[-1 0 1]);drawnow;%subplot(3,1,3);plot(tc,yc(:,6),'k','Linew',lw);hold onhpl=plot(t,y(:,3),'m.');set(hpl,'Markersize',Ms)axis([0,10,-1.5,1.5]);set(gca,'Fontsize',9,'Fontname','NewCenturySchlbk');set(gca,'xtick',[0 5 10]);set(gca,'ytick',[-1 0 1]);xlabel('Time','Fontsize',9,'Fontname','NewCenturySchlbk');drawnow;

⌨️ 快捷键说明

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