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

📄 fig31.m

📁 realize analysis and design for computer-controlled system
💻 M
字号:
% Generates Fig 3.1% Computer Controlled Systems (3rd ed)% Author: B. Wittenmark% Last edit: 1997-06-27% Copyright (c) 1996 by K. J. 舠tr鰉, B. Wittenmark and% Department of Automatic Control, Lund Institute of% Technology, Lund, Swedenblock31;newplot;set(gcf,'PaperUnits','centimeters','PaperPosition',[2 2 13 10])set(gcf,'Units','centimeters','position',get(gcf,'PaperPosition'))opt=simset('Outputpoints','specified');h=0.5;lw=0.9;Ms=7;%subplot(3,1,1);[t,x,y]=sim('block31',[0:h:30],opt);[ts,ys]=stairs(t,y(:,2));plot(ts,ys, 'k','Linew',lw);%title('Fig 3.1   Input');axis([0,30,-0.75,0.75]);set(gca,'Fontsize',9,'Fontname','NewCenturySchlbk');set(gca,'xtick',[0 10 20 30]);ylabel('Input','Fontname','NewCenturySchlbk','Fontsize',9)%subplot(3,1,2);hpl=plot(t,y(:,1),'m.');axis([0,30,-5,5]);set(gca,'Fontsize',9,'Fontname','NewCenturySchlbk');set(gca,'xtick',[0 10 20 30]);set(hpl,'MarkerSize',Ms)xlabel('Time','Fontname','NewCenturySchlbk','Fontsize',9)ylabel('Output','Fontname','NewCenturySchlbk','Fontsize',9)%ylblalgn;subplot(3,1,3);delete(gca);drawnow

⌨️ 快捷键说明

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