hi guys,
i have a problem in a Control System of Simulink..
I've an array (values of error e=ysp-y) that I want to put as Input in a Matlab function like this
function[iae]=load(u,h,iae_lim)
....
if sign(e(tempo))==sign(e(tempo-1))
iae=iae+abs(e)*h;
load=0;
else
if...