MATLAB: How to change the linewidth of a curve in a graph by using code linewidth like: x=linspace(0,2*pi);y=sin(x) I want the sine curve's linewidth is 2. Best Answer use linewidthx=linspace(0,2*pi); y=sin(x);plot(x, y, 'linewidth',2) Related SolutionsMATLAB: How to hold the previous “legend” on a plot here is the answer that I was looking for:x=0:.01:10;plot(x, sin(x), 'DisplayName','sin');legend('-DynamicLegend');hold all; % add new plot lines on top of previous ones plot(x, cos(x), 'DisplayName','cos'); MATLAB: Linewidth for function step Get the outputs of the step function, then plot them using a plot call:[y,t] = step(value_1);figureplot(t, squeeze(y), 'LineWidth',2)gridThe Control System Toolbox plot functions do not allow you to alter their properties easily, if at all. Related QuestionPlot only markers without linesHow to make a marker circle boldLinewidth for specific lineBug in R2014b? Markersize specifier resets marker type
Best Answer