I'm tring to model a system with System Identification Toolbox in Matlab based on input-output data of a system. My problem is that despite finding a process model with good fit, also seen in compare() function with Validation data, there is no good fit seen in Simulink. I suppose I might forget to take into account some initial condition or something similar in Simulink.
I have already asked on Matlab answers, but it might have been overseen: Matlab Answers
I have recorded requested motor torque data and current position data. Split them. From the first half of the data created iddata object EstimationData. From the second half ValidationData.
Then run:
processModel=procest(EstimationData,'P3DZU');
then run:
compare(ValidationData,processModel);
shows following response with very good fit of 99,54 %.
Then following Sinulink structure is build:
Scope shows following picture:
So my question is, why doesn't the signals match ob Scope how they match in the figure after calling compare function()?