how to calculate Integral Square error(ISE) of a system step response from matlab
25 views (last 30 days)
Show older comments
how to calculate Integral Square error(ISE) of a system step response from matlab
0 Comments
Answers (3)
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
0 Comments
ASWANT KUMAR SHARMA
on 11 Jan 2019
err = 1-y;
deltat = 0.1;
ise = trapz(deltat,err.^2);
3 Comments
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.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!