Matlab

Moderators: None (Apply to moderate this forum)
Number of threads: 1467
Number of posts: 2144

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Need help in matlab system identification for mimo system. Posted by joe_mikael on 13 Apr 2012 at 3:42 AM
given heater as the input and rel.humidity and temp. as the outputs.

To find this coefficients of this mimo system.This is my coding so far and i get confused .what should i find next?i also attached the .mat file .Please help me.May God bless you all. :)

temp = A(:,1);rh = A(:,2); %temp % rh as the output
heater = A(:,3); %heater as the input
y =[temp rh];
u = heater;
trn_data_n = 100;
total_data_n = 218;
yn = dtrend(y);
un = dtrend(u);
ave_out = mean(y);
ave_in = mean(u);
T = 5; %minutes
hvac = iddata(yn,un,T);
hvac.InputName  = {'Heater'};
hvac.OutputName = {'Temperature';'Rel.Humidity'};
plot(hvac(:,1,1)) % temp. vs. heater
pause
plot(hvac(:,2,1)) % rh vs. heater
ms = step(hvac); % step responses
step(ms)
impulse(ms,'sd',3) % impulse response with confidence regions corresponding to 3 standard deviations
%state space model
mp = pem(hvac(1:trn_data_n)); % Use only the first half of the data for estimation:
A=mp.A; B=mp.B; C=mp.C; D=mp.D;
[nem, den]=ss2tf(A,B,C,D,1); %convert ss to transfer function




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.