Adding custom properties to response plot (e.g. settling time, peak response etc.)
Show older comments
Hey everyone,
I have a simple model of a state-space system and I'd like to examine its response to initial conditions.
One of the things I'd like to show is a kind of "settling time", but not the kind we all know and love (ha). I want to show the first point at which the graph goes below a certain value (1% of the starting point, for what it's worth. It's a descending graph, of course).
Now, had this been a common thing to show, I'd have the option to display is through right click-->properties, but it's not.
So my question is - how do I go about doing this? I basically need to do three things:
1. adding a marker to the plot at the specific point where the graph goes below a certain value (call it m)
2. plotting a horizontal line (at m) that goes from the y-axis to the graph line (but doesn't cross it)
3. plotting a vertical line that goes from the x-axis up to the graph (but doesn't cross it)
If you guys have any ideas/tips, please share! Any kind of help would be greatly appreciated.
1 Comment
Guy Lalkin
on 5 Jun 2015
Answers (0)
Categories
Find more on Creating, Deleting, and Querying Graphics Objects 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!