To set the linewidth of a plot in MATLAB, you can use the LineWidth property of the plot function. Here's an example:
main.m167 chars9 lines
In this example, the plot function is used to plot the sin function over the range 1 to 10. The LineWidth property is set to 2, which sets the linewidth of the plot to 2.
Alternatively, you can get the current axis handle using the gca() function, and set the LineWidth property of the axis handle to the desired value.
gistlibby LogSnag