ISE, IAE, ITAE via Simulink

I have the data for output y and time t taken from simulink into the matlab workspace. I also have plot of y versus t Error is defined as
e(t)= 1-y(t).
Is it possible to calculate Integral square error, Integral absolute error, Integral time absolute error from this information. How could I do it ?

5 Comments

trapz(t,abs(e)); % IAE trapz=numerical integration
trapz(t,e.^2); % ISE
trapz(t, t'.*abs(e)); % ITAE
trapz(t,t'.*(e.^2)); % ITSE
Than You!!!
I am working on PI controller via matlab simulink, and want to assess the performance by using ISE . when i run the model i get a huge serise data of ISE in matlab workspace.
which value should be take as th ISE ??
Learner123
Learner123 on 16 Oct 2022
Edited: Learner123 on 16 Oct 2022
Hi,
Last value can be taken.
try the below code.
ans.ISE.values(length(ans.ISE.values),1);

Sign in to comment.

Answers (0)

Categories

Find more on Modeling in Help Center and File Exchange

Tags

Asked:

on 1 Sep 2017

Edited:

on 16 Oct 2022

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!