How to change frequency unit in plot of viewGoal function without using right click and properties dialog?
3 次查看(过去 30 天)
显示 更早的评论
Hi there,
does anyone know how to change the frequency unit in the plot generate by the viewGoal() function, e.g. for a tuning goal like TuningGoal.Tracking, without doing a right click and using the properties dialog? The default option is rad/second, but I'd like to have Hz as default. Is there a command I can use in my script calling the viewGoal() function to set the frequency unit automatically to Hz? Is seems there is not "plotoptions" like bodeplot has.
Best regards, Robert
0 个评论
采纳的回答
Arkadiy Turevskiy
2018-10-29
编辑:Arkadiy Turevskiy
2018-10-29
Hi,
Try this:
gmax = frd([1 1 0.01],[0 1 100]);
Req = TuningGoal.MaxGain('du','u',gmax);
viewGoal(Req);
h=gcr;
setoptions(h,'FreqUnits','Hz');
Hope this helps.
Arkadiy Turevskiy
MathWorks
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Plot Customization 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!