the model seems to be good but when i run it gives me this error. why is that so?
Error in 'SGA__suspension_flc_quarter/2-in-1-out FLC' while executing MATLAB S-function 'SGA__suspension_flc_std_2in1out_sfunction', flag = 2 (update), at time 0.0.
There is a fundamental problem with this Simulink scheme: there is an algebraic loop since the value of "ecc" is being computed through a derivative block. This makes the simulation result sensitive to the selected integration step-size. To fix this issue just compute the value of this signal directly from the state variables of the plant. It is easy and solves the problem. I did it and everything works perfectly for any integration step-size!