how to calculate Integral Square error(ISE) of a system step response from matlab

25 views (last 30 days)
how to calculate Integral Square error(ISE) of a system step response from matlab

Answers (3)

Dham Alshammry
Dham Alshammry on 27 May 2017
hello, though this is an old post, but i just knew how to do it.
you can store the response in a variable, say R. if the input signal is a unit step it is a 1 allover the time. you can calculate error by subtracting 1 from R, that yields new array called error. you can square error, then use trapz to integrate

Jatin Patel
Jatin Patel on 13 Nov 2017
Can you give an example?
Thank You!

ASWANT KUMAR SHARMA
ASWANT KUMAR SHARMA on 11 Jan 2019
err = 1-y;
deltat = 0.1;
ise = trapz(deltat,err.^2);
  3 Comments
NITHIN BALARAMEGOWDA
NITHIN BALARAMEGOWDA on 2 Dec 2020
data1 = somevalues(:,2);
data2 = somevalues(:,3);
t = 0:0.01:15 %have to be same as simulation step time and final time
error = (somevalues(:,2)-somevalues(:,3)).^2;
ISE = trapz(t,error)
Hope it helps.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!