File Exchange Pick of the Week

Our best user submissions

Step response information

My colleague Tom is much more of a controls kind of guy than I am, so he found this week’s pick before I did. He was much impressed with this code from long time MATLAB user, Duane. I gave this function a try, you can see it all in the screenshot here (I added the plot and data tips manually).

Step Response

This is what Tom had to say:

As a relative new comer to the world of MATLAB (user since July 2005), the MATLAB Central user community is an incredible resource for me. Case in point: I had a need to perform some standard time-domain measurements (risetime, falltime, overshoot, settle time) on simulation results from Simulink. As an engineer, my first instinct was to refer to the IEEE Std-181-2003 document to get the definitions of these common measurements and code them into a .m script myself. Fortunately, before I got too far into this endeavor, I came across the STEPSPECS function written by Duane Hanselman on MATLAB Central (I assume Duane is a bit older than he looks in his profile photo). This function very compactly returns the percent overshoot, settling time, and rise time from the step response data contained in input vectors T and Y. Perfect!!! In the true spirit of this community, I was about to quickly reuse this function and modify it to meet my needs. Duane’s work gave me a great head start towards implementing a series of measurement functions that can be performed on arbitrary time-domain waveforms with results annotated to the plot window. Someday these will be in a state worthy of MATLAB central and then maybe I can be the pick of the week! Stay tuned…

–Tom

|
  • print

Comments

To leave a comment, please click here to sign in to your MathWorks Account or create a new one.