How to change XLabel, Title, Font size etc for bodeplot?
47 views (last 30 days)
Show older comments
MathWorks Support Team
on 16 Jan 2017
Answered: MathWorks Support Team
on 16 Feb 2017
How to change XLabel, Title, Font size etc for bodeplot?
Accepted Answer
MathWorks Support Team
on 16 Feb 2017
'bodeplot' properties can be changed
1. By passing 'bodeoptions' to 'bodeplot'
opts = bodeoptions('cstprefs');
opts.PhaseVisible = 'off';
opts.FreqUnits = 'Hz';
opts.Title.String = 'My Title';
opts.XLabel.String = 'My XLabel';
opts.Title.FontSize = 12;
h = bodeplot(tf(1,[1,1]),opts);
2. By using setoptions to modify the properties after 'bodeplot' is created.
h = bodeplot(tf(1,[1,1]));
options = getoptions(h);
options.PhaseVisible = 'off';
opts.FreqUnits = 'Hz';
options.Title.String = 'My Title';
options.XLabel.String = 'My XLabel';
options.Title.FontSize = 12;
setoptions(h,options);
For more details, please refer - http://www.mathworks.com/help/control/ref/bodeoptions.html
0 Comments
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!