如何在LTIview中添加其他标题?

编程入门 行业动态 更新时间:2024-10-25 16:21:41
本文介绍了如何在LTIview中添加其他标题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我想在不同条件下(例如欠阻尼,临界阻尼条件等)使用LTIview绘制二阶传递函数的阶跃响应.我想在同一matlab程序中绘制它们的图,因此要给出自己的标题名称,例如阻尼不足的情况.但是以下用于plot函数的代码不起作用,并且GUI提供了预初始化的名称

I want to plot step response of a second order transfer function using LTIview in different conditions such as underdamped,critically damped condition etc. I want to plot them in the same matlab program so want to give my own title names such as 'underdamped' condition. But the following code for plot function doesn't work and the GUI gives the preinitialised names

figure,ltiview('step',trf),title('underdmp')

ltiview('step',trf),title('overdamped')

如何解决这个问题?并根据我的选择给出名称?

How to solve this problem? And give the names according to my choice?

推荐答案

为了在标准工具箱窗口中对图的标题属性进行总括化,您需要检索图形的轴对象.

In order to costomize the title property of a plot in a standard toolbox window, you need to retrieve the axes object of the figure.

以下代码使用lti示例显示解决方案:

The following code uses lti examples to show the solution:

load ltiexamples; H = ltiview(sys_dc); obj = findobj(H, 'type', 'axes'); title(obj, 'my name here');

这是结果:

编辑

伯德图由两个图组成,分别由两个轴对象组成.因此,您需要放置一个对象索引以访问轴对象.

A Bode plot consists of two plots and respectively of two axes-objects. So you need to put an object index to access the axes object.

load ltiexamples; H = ltiview('bode', sys_dc); obj = findobj(H, 'type', 'axes'); title(obj(1), 'Custom title for the bode plot');

更多推荐

如何在LTIview中添加其他标题?

本文发布于:2023-11-28 19:01:33,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1643585.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:标题   如何在   LTIview

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!