MATLAB: Scatter3D with gray scale color

scatter3d

Hello I have four matrixes of X, Y, Z and C, that the X, Y, and Z are coordinates and the C is the colour intensity (coordinates achieved through image processing and C is the colour intensity of grey image) I want to know, how can I scatterplot these coordinates with the C range colour in grey-scale? The data attached.

Best Answer

scatter3(X,Y,Z,10,C) ;
colormap(gray)