allmargin function giving different results between 2013b and 2012a
Show older comments
I am running a script using linmod() and ss() to get the state space representation of a Simulink model. Then, I am using the allmargin() function on the system to determine the margins. However, I get different margins when I use Matlab2013b when compared to Matlab2012a. I've double checked that my script and Simulink models used between the versions are the same. Can someone please shed some insight on why this may be the case?
3 Comments
Craig
on 20 Feb 2014
It is hard to tell for sure without seeing the models. One thing to try is save the system in 2012a and load it into 2013b and compare the two systems by plotting there frequency responses and also comparing the results given by allmargin. Does your system have underdamped poles or zeros with low damping?
Jin
on 3 Mar 2014
Craig
on 13 Mar 2014
There are usually small differences between release to release with changes to BLAS and improvements in scaling algorithms to improve numerical accuracy. One thing would be to look at in your frequency reponse particularly at the 0db and -180deg. Is the response steep at these locations? If they are then the value would be more sensitive to small variations at these locations.
Answers (0)
Categories
Find more on Time and Frequency Domain Analysis 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!