How to increase size of y x axis, Title, X/Y Labels of Bode Diagram or Step Response in Matlab

Опубликовано: 11 Июнь 2026
на канале: A
1,789
14

For set the Font and Size of Title, X/Ylabel, and Numbers of Bode Diagram or Step Response; in Command Window of MATLAB type: ctrlpref
There You can Set Fonts, Grid on/off, and set Units.

For set width of x/y axis lines and rulers of the Bode Diagram or Step Response; use this Code:
(Check it if it worked Don't need to watch the video! )

s = tf('s');
plant = s/(s+1); %any plant you can use

m = gca;
bodeplot(plant); % Draw the bode diagram
xruler=m.XRuler; xruler.Axle.LineWidth=1.5; xruler.LineWidth=1.5;
yruler=m.YRuler; yruler.Axle.LineWidth=1.5; yruler.LineWidth=1.5;
m = gca;
xruler=m.XRuler; xruler.Axle.LineWidth=1.5; xruler.LineWidth=1.5;
yruler=m.YRuler; yruler.Axle.LineWidth=1.5; yruler.LineWidth=1.5;

I found it from the website: http://undocumentedmatlab.com/article...