📄 fig111.m
字号:
% Generates Fig 1.11 % Computer Controlled Systems (3rd ed)% Author: B. Wittenmark% Last edit: 1997-06-21% Copyright (c) 1996 by K. J. 舠tr鰉, B. Wittenmark and% Department of Automatic Control, Lund Institute of% Technology, Lund, Swedenblock110;newplot;set(gcf,'PaperUnits','centimeters','PaperPosition',[2 2 13 10])set(gcf,'Units','centimeters','position',get(gcf,'PaperPosition'))opt=simset('Refine',5);lw=0.9;Ms=9;uc=0;w=1;a=w/2;b=2*w;K=2*w*w;h=0.5;%[t,x,y]=sim('block110',[0, 10],opt);clf;%subplot(3,1,1);plot(t,y(:,5),'k-','Linew',lw);hold on;axis([0,10,-0.3,0.3]);set(gca,'Fontsize',9,'Fontname','NewCenturySchlbk');set(gca,'xtick',[0 5 10]);set(gca,'ytick',[-0.2 0 0.2]);ylabel('Measured output','Fontsize',9,'Fontname','NewCenturySchlbk');hold on;drawnow;%subplot(3,1,2);[ts,ys]=stairs(t,y(:,6));plot(ts,ys,'k-','Linew',lw);axis([0,10,-0.3,0.3]);set(gca,'Fontsize',9,'Fontname','NewCenturySchlbk');set(gca,'xtick',[0 5 10]);set(gca,'ytick',[-0.2 0 0.2]);ylabel('Input','Fontsize',9,'Fontname','NewCenturySchlbk');xlabel('Time','Fontsize',9,'Fontname','NewCenturySchlbk');drawnow;%subplot(3,1,1);opt=simset(opt,'Outputpoints','specified');[t,x,y]=sim('block110',[0:h:10],opt);hpl=plot(t,y(:,5),'m.');set(hpl,'Markersize',Ms)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -