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

📄 z1.asv

📁 matlab-gui 自动控制原理-采样控制系统
💻 ASV
字号:
function varargout = Z1(varargin)
% Z1 M-file for Z1.fig
%      Z1, by itself, creates a new Z1 or raises the existing
%      singleton*.
%
%      H = Z1 returns the handle to a new Z1 or the handle to
%      the existing singleton*.
%
%      Z1('CALLBACK',hObject,eventData,handles,...) calls the local
%      function named CALLBACK in Z1.M with the given input arguments.
%
%      Z1('Property','Value',...) creates a new Z1 or raises the
%      existing singleton*.  Starting from the left, property value pairs are
%      applied to the GUI before Z1_OpeningFunction gets called.  An
%      unrecognized property name or invalid value makes property application
%      stop.  All inputs are passed to Z1_OpeningFcn via varargin.
%
%      *See GUI Options on GUIDE's Tools menu.  Choose "GUI allows only one
%      instance to run (singleton)".
%
% See also: GUIDE, GUIDATA, GUIHANDLES

% Edit the above text to modify the response to help Z1

% Last Modified by GUIDE v2.5 16-Apr-2006 16:31:18

% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name',       mfilename, ...
                   'gui_Singleton',  gui_Singleton, ...
                   'gui_OpeningFcn', @Z1_OpeningFcn, ...
                   'gui_OutputFcn',  @Z1_OutputFcn, ...
                   'gui_LayoutFcn',  [] , ...
                   'gui_Callback',   []);
if nargin && ischar(varargin{1})
    gui_State.gui_Callback = str2func(varargin{1});
end

if nargout
    [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
    gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT


% --- Executes just before Z1 is made visible.
function Z1_OpeningFcn(hObject, eventdata, handles, varargin)
% This function has no output args, see OutputFcn.
% hObject    handle to figure
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
% varargin   command line arguments to Z1 (see VARARGIN)

% Choose default command line output for Z1
handles.output = hObject;

% Update handles structure
guidata(hObject, handles);

% UIWAIT makes Z1 wait for user response (see UIRESUME)
% uiwait(handles.figure1);


% --- Outputs from this function are returned to the command line.
function varargout = Z1_OutputFcn(hObject, eventdata, handles) 
% varargout  cell array for returning output args (see VARARGOUT);
% hObject    handle to figure
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Get default command line output from handles structure
varargout{1} = handles.output;
%axis off;

hh1=rectangle('Position',[0,0,1,1],'Curvature',[0,0],'linewidth',3);
y1=(0:0.01:1);x1=0.5*ones(size(y1));line(x1,y1,'linewidth',2.0,'color',[0,0,0]);
x2=(0:0.01:1);y2=0.125*ones(size(x2));line(x2,y2,'color',[0,0,0]);
x3=(0:0.01:1);y3=0.25*ones(size(x2));line(x3,y3,'color',[0,0,0]);
x4=(0:0.01:1);y4=0.375*ones(size(x2));line(x4,y4,'color',[0,0,0]);
x5=(0:0.01:1);y5=0.5*ones(size(x2));line(x5,y5,'color',[0,0,0]);
x6=(0:0.01:1);y6=0.625*ones(size(x2));line(x6,y6,'color',[0,0,0]);
x7=(0:0.01:1);y7=0.75*ones(size(x2));line(x7,y7,'color',[0,0,0]);
x8=(0:0.01:1);y8=0.875*ones(size(x2));line(x8,y8,'color',[0,0,0]);

y9=(0:0.01:1);x9=0.25*ones(size(y9));line(x9,y9,'color',[0,0,0]);
y10=(0:0.01:1);x10=0.75*ones(size(y9));line(x10,y10,'color',[0,0,0]);

text(0.1,0.94,'\fontsize{20}\bfX(s)')
text(0.35,0.94,'\fontsize{20}\bfX(z)')
text(0.6,0.94,'\fontsize{20}\bfX(s)')
text(0.85,0.94,'\fontsize{20}\bfX(z)')

text(0.1,0.81,'\fontsize{18}1')
text(0.1,0.69,'\fontsize{18}e^{-Kts}')
text(0.1,0.6,'\fontsize{18}1')
text(0.1,0.525,'\fontsize{18}s')
text(0.1,0.475,'\fontsize{18}1')
text(0.1,0.4,'\fontsize{18}s^2')
text(0.1,0.35,'\fontsize{18}1')
text(0.1,0.275,'\fontsize{18}s+a')
text(0.1,0.225,'\fontsize{18}a')
text(0.1,0.15,'\fontsize{18}s(s+a)')
text(0.1,0.1,'\fontsize{18}\omega')
text(0.1,0.025,'\fontsize{18}s^2+\omega^2')

xx1=(0.075:0.01:0.175);xx2=(0.325:0.01:0.425);xx3=(0.575:0.01:0.675);xx4=(0.825:0.01:0.925);
yy1=0.0625*ones(size(xx1));yy2=0.1875*ones(size(xx1));yy3=0.3125*ones(size(xx1));yy4=0.4375*ones(size(xx1));yy5=0.5625*ones(size(xx1));
yy1=0.0625*ones(size(xx2));yy2=0.1875*ones(size(xx2));yy3=0.3125*ones(size(xx2));yy4=0.4375*ones(size(xx2));yy5=0.5625*ones(size(xx2));
yy1=0.0625*ones(size(xx3));yy2=0.1875*ones(size(xx3));yy3=0.3125*ones(size(xx3));yy4=0.4375*ones(size(xx3));yy5=0.5625*ones(size(xx3));
yy1=0.0625*ones(size(xx4));yy2=0.1875*ones(size(xx4));yy3=0.3125*ones(size(xx4));yy4=0.4375*ones(size(xx4));yy5=0.5625*ones(size(xx4));
yy6=0.8125*ones(size(xx3));yy7=0.6875*ones(size(xx3));yy6=0.8125*ones(size(xx4));yy7=0.6875*ones(size(xx4));
line(xx1,yy1,'color',[0,0,0],'linewidth',1.5);
line(xx1,yy2,'color',[0,0,0],'linewidth',1.5);
line(xx1,yy3,'color',[0,0,0],'linewidth',1.5);
line(xx1,yy4,'color',[0,0,0],'linewidth',1.5);
line(xx1,yy5,'color',[0,0,0],'linewidth',1.5);
line(xx2,yy1,'color',[0,0,0],'linewidth',1.5);
line(xx2,yy2,'color',[0,0,0],'linewidth',1.5);
line(xx2,yy3,'color',[0,0,0],'linewidth',1.5);
line(xx2,yy4,'color',[0,0,0],'linewidth',1.5);
line(xx2,yy5,'color',[0,0,0],'linewidth',1.5);
%line(xx3,yy1,'color',[0,0,0],'linewidth',1.5);
line(xx3,yy2,'color',[0,0,0],'linewidth',1.5);
line(xx3,yy3,'color',[0,0,0],'linewidth',1.5);
line(xx3,yy4,'color',[0,0,0],'linewidth',1.5);
line(xx3,yy5,'color',[0,0,0],'linewidth',1.5);
%line(xx4,yy1,'color',[0,0,0],'linewidth',1.5);
line(xx4,yy2,'color',[0,0,0],'linewidth',1.5);
line(xx4,yy3,'color',[0,0,0],'linewidth',1.5);
line(xx4,yy4,'color',[0,0,0],'linewidth',1.5);
line(xx4,yy5,'color',[0,0,0],'linewidth',1.5);
line(xx3,yy6,'color',[0,0,0],'linewidth',1.5);
line(xx3,yy7,'color',[0,0,0],'linewidth',1.5);
line(xx4,yy6,'color',[0,0,0],'linewidth',1.5);
line(xx4,yy7,'color',[0,0,0],'linewidth',1.5);



text(0.35,0.81,'\fontsize{16}1')
text(0.35,0.69,'\fontsize{16}z^{-K}')
text(0.35,0.6,'\fontsize{16}z')
text(0.35,0.525,'\fontsize{16}z-1')
text(0.35,0.475,'\fontsize{16}Tz')
text(0.35,0.4,'\fontsize{16}(z-1)^2')
text(0.35,0.35,'\fontsize{16}z')
text(0.35,0.275,'\fontsize{16}z-e^{-aT}')
text(0.35,0.225,'\fontsize{16}(1-a^{-aT})z')
text(0.35,0.15,'\fontsize{16}(z-1)(z-e^{-aT})')
text(0.35,0.1,'\fontsize{16}zsin\omegaT')
text(0.3,0.025,'\fontsize{16}z^2-2zcos\omegaT+1')

text(0.62,0.835,'\fontsize{16}s')
text(0.6,0.785,'\fontsize{16}s^2+\omega^2')
text(0.6,0.715,'\fontsize{16}1')
text(0.6,0.66,'\fontsize{16}(s+a)^2')
text(0.6,0.59,'\fontsize{16}\omega')
text(0.6,0.535,'\fontsize{16}(s+a)^2+\omega^2')
text(0.6,0.465,'\fontsize{16}s+a')
text(0.6,0.41,'\fontsize{16}(s+a)^2+\omega^2')
text(0.6,0.34,'\fontsize{16}1')
text(0.6,0.285,'\fontsize{16}s^3')
text(0.6,0.215,'\fontsize{16}1')
text(0.6,0.15,'\fontsize{16}1-e^{-Ts}')

text(0.815,0.84,'\fontsize{16}z(z-cos\omegaT)')
text(0.81,0.79,'\fontsize{16}z^2-2zcos\omegaT+1')
text(0.825,0.71,'\fontsize{16}Tze^{-aT}')
text(0.825,0.663,'\fontsize{16}(z-e^{-aT})^2')
text(0.8,0.585,'\fontsize{16}ze{-aT}sin\omegaT')
text(0.76,0.535,'\fontsize{16}z^2-2ze^{-aT}cos\omegaT+e^{-2aT}')
text(0.8,0.465,'\fontsize{16}z^2-ze^{-aT}cos\omegaT')
text(0.76,0.41,'\fontsize{16}z^2-2ze^{-aT}cos\omegaT+e^{-2aT}')
text(0.815,0.34,'\fontsize{16}T^2z(z(z+1)')
text(0.83,0.285,'\fontsize{16}2(z-1)^3')
text(0.86,0.215,'\fontsize{16}z')
text(0.85,0.16,'\fontsize{16}z-1')

⌨️ 快捷键说明

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