from
System Identification using GA with a GUI interface
by Wesam Elshamy
Idnetifying ARX model of a system using Genetic Algorithms with a GUI interface and compare it to Le
|
| 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)
|
|
Contact us at files@mathworks.com