Type the following line of code into MATLAB:
scatter(X,Y,S,C)
Replace “X” with the name of the vector containing your first group of data. Replace “Y” with the name of the vector containing your second group of data. Note that both groups of data must be equally sized – if they are not, remove any data points that do not have a corresponding figure in the other data set. Replace “S” with the size you want the markers in the graph to be, for example “5”. If you are not happy with how the graph looks after running the program, you can simply edit the figure you supplied for “S” and run the program again until you like the results. Replace “C” with the colors you want the markers to be. If you replace “C” with the name of a one-by-three matrix with integer values between 0 and 255, the color of the markers will be set to a red, green and blue combination specified by these values. Go to allprofitallfree.com/color-wheel2.html to find the color you want using the color wheel.