Model generated by system identification tool when transported into simulink, does not match and is unstable
1 view (last 30 days)
Show older comments
Hi Guys I encounter this problem while using Matlab 2011b. I have a single input single output system represented by test data which i import into the system id toolbox; the input is a step function. I am able to generate a 3rd order state space (SS) model called pss3. the 3rd order SS model is generated using the PEM method, Disturbance fixed at K=0 and initial state set to 0 and no covariance, all set in the Linear Parametric Model window of the sysid toolbox. The model shows a 94.29% match with the test data. The residual plot shows that the model's cross correlation b/w input & output residuals is well within 99% confidence intervals.
i transport pss3 into matlab workspace and from there into a state space model in simulink where i define the four state matrices as pss3.a ... p333.d. i use the commands data=iddata(test_output,test_input,ts) and x0=findstates(pss3,data) in a script file to generate initial condition x0 which is transported as the initial condition of the Simulink model. I excite the simulink model with the same step input as was used in the test to discover that the step response of the simulink model is not only way off (from the 3rd order SS model) but is also unstable. Am I making a mistake? How can this problem be fixed? Thanks
0 Comments
Answers (2)
Rajiv Singh
on 20 May 2013
Hi Saurabh, Could you try running the SIM command in the MATLAB Command Window (e.g. y = sim(pss3, input)) and check if the simulated response matches what you get in Simulink?
Also, could you send me an example that reproduces the problem you have described?
Rajiv
0 Comments
See Also
Categories
Find more on Correlation Models in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!