How to add a different title to LTIview?

前端 未结 1 1901
旧巷少年郎
旧巷少年郎 2021-01-26 16:04

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 i

相关标签:
1条回答
  • 2021-01-26 16:36

    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.

    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');
    

    Here is the result:

    EDIT

    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');
    

    0 讨论(0)
提交回复
热议问题