MATLAB: Linewidth for function step

colorlinelinewidthMATLABplotplottingresponsesetstepstep responsewidth

I plotted something but not sure why I can't adjust the linewidth of the result of the plot. I was able to change colors but linewidth doesn't change.
step(value_1);
set(value_1, 'LineWidth', 2);

Best Answer

Get the outputs of the step function, then plot them using a plot call:
[y,t] = step(value_1);
figure
plot(t, squeeze(y), 'LineWidth',2)
grid
The Control System Toolbox plot functions do not allow you to alter their properties easily, if at all.