MATLAB: Changing the colour of lines on a graph colorgraph Best Answer Try this:if i == 6 plot(x,y,'r', 'MarkerSize', 10, 'LineWidth', 2); % Plot marker in red.else plot(x,y,'k');end Related SolutionsMATLAB: Bar graph help needed subplot(2,2,[1 3]);bar(Mean0); hold on; bar(Mean08, 'r'); MATLAB: How to add zero at the very beginning of the column matrix Use a semicolon instead of a comma. The variable 'Eng_Strain' is a column vector so you need to vertically concatenate the zero with the vector. Eng_Stress = [zeros(1); Eng_Stress]; % ^Or just Eng_Stress = [0; Eng_Stress]; Related QuestionHow to use colormap for different bars.How to find an intersection between two lines on a plotCreate Plot Title of the Plotted FunctionLine of best fit
Best Answer