?? sisodata.m
字號:
% This M-file creates SISO model with its input (u) and output (y)
% It is intended to generate random input data and its output from an
% arbitrary model
%
% Author: Wesam ELSHAMY
% wesamelshamy@ieee.org
% Electrical Engineering Dept., Cairo University, Egypt
%% Plant and input parameter
u = 10*rand(300,1);
o = [1 0.1 0.2 0.3];
p = [0 0.1 0.2];
%% Generate Model
idmodel2 = idpoly(o,p)
%% Generate Data
y = sim(idmodel2,u);
y=y+randn(size(y));
%% Plot
plot(y)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -