Hi,
Can anyone tell how to calculate the step response co-efficients from step test data?
and
how can i fix the prediction and control horizons?
thx in advance.

Function "filter" is digital filter which takes coefficients of discrete transfer function polynomial. To get digital filter approximation of continuous filter with transfer function "1/(1+T*s)" and sampling period Ts use coefficients p.a=exp(-Ts/T) ,b=[0,p.a], a=[1,-p.a].

Comment only