MATLAB: How to plot vectors plotting vectors How can i create a histogram of density with the histogram function and how can i Set the "FaceColor" to yellow ("y") ? Best Answer A = ... % Your data H = histogram(A);H.FaceColor = 'y'; % Face ColorH.EdgeColor = 'r'; % Edge Color Related SolutionsMATLAB: How to change the line color in a graph using plot plot(x,y,'r') %r refers to red colorSee colors to know how many colours are available. MATLAB: How to plot this graph The below code could be helpful in plotting the graph.load datax=data.Latitude;y=data.CUE;std_dev=std(y); %calculate standard deviationcurve1=y+std_dev; %above curvecurve2=y-std_dev; %below curvex2=[x, fliplr(x)];Middle=[curve1, fliplr(curve2)];fill(x2,Middle,'g'); %plot the shaded area between curveshold on;plot(x,y,'y','LineWidth',2); %plot the mean lineAlso refer the following links:https://www.mathworks.com/matlabcentral/answers/180829-shade-area-between-graphs#answer_169649https://www.mathworks.com/matlabcentral/answers/494515-plot-standard-deviation-as-a-shaded-area?s_tid=answers_rc1-3_p3_Topic Related Question
Best Answer