MATLAB: Linewidth for specific line linewidthMATLAB how to specify linewidth for one line in a multi line plot? Best Answer NoamI kindly ask to have the following answer marked as Accepted Answer:x = 1:1:10;L=5 % amount of linesy = randi([1 10], L,10);Lwidth=[1 2 3 4 5]figure(1);hold allfor k=1:1:L plot(x,y(k,:),'LineWidth',Lwidth(k))endgrid onorfigure(1);hold allfor k=1:1:L h=plot(x,y(k,:)) h.LineWidth=Lwidth(k)endgrid on.appreciating time and attentionJohn BG<mailto:jgb2012@sky.com jgb2012@sky.com> Related SolutionsMATLAB: Vertical Title in subplot figuresubplot(1,3,1)plot(1:10)ylabel({'\fontsize{20}Car','\fontsize{12}Recall'})subplot(1,3,2)plot(1:10)ylabel({'\fontsize{12}Recall'})subplot(1,3,3)plot(1:10)ylabel({'\fontsize{12}Recall'}) MATLAB: Give title on the left side of subplot You can make title as ylabel and achieve what you want..x = linspace(0,10);y1 = sin(x);y2 = sin(5*x);figuresubplot(2,1,1);plot(x,y1)ylabel('title1')set(get(gca,'YLabel'),'Rotation',0)subplot(2,1,2);plot(x,y2)ylabel('title2')set(get(gca,'YLabel'),'Rotation',0) Related Question[GIS] Delineate polygonal catchment areas from a raster using open-source GISHow to make the edge of the graph boldTitle of figure with subplot titlePlotting a line x=constantHow to plot this two figures
Best Answer