Adding custom properties to response plot (e.g. settling time, peak response etc.)
显示 更早的评论
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.
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Creating, Deleting, and Querying Graphics Objects 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!