MATLAB: Plot/scatter with marker size and color plot hello i need some help as example i have x=1:10 y=1:10 value=1:10 scatter(x,y,value) so I need to add marker color as it varies depending on the ( value) i tried some codes but it doesn't work Best Answer For different color, typex=1:10;y=1:10;value=linspace(1,10,length(x));scatter(x,y,[],value)To add diamond marker, typescatter(x,y,[],value,'d') Related SolutionsMATLAB: How to make a single plot with different colors Hix=1:10;y=1:10;plot(x(1:5),y(1:5),'r')hold onplot(x(5:10),y(5:10),'g') MATLAB: How to make an output text file in matlab. Explain by an example please X=1:10dlmwrite('textfile.txt',X) Related QuestionI have some problem when plotting the graph, anyone can help? ThanksMake certain plot markers invisibleCould anyone help me to solve the issuePlotting 2 graphs on the same axesFor each fmincon it overwrites the previous values, meaning at the end there is only 1 set of values when there should be 100. The code is running 100 times and displays all sets of values but not storing all sets. How to resolve this
Best Answer