Hello,
I beginning to learn MATLAB and need to change the color of a surface I created using the "surf" command. My current code is as follows:
surf(X,Y,xPd,'FaceAlpha',0.5)
This works fine in creating the figure, I just need to change the color of the surface. The color itself does not matter as long as it stands out. I think I need to add a fourth variable after "xPD" but I am not sure what script to enter in specific. I have tried directly entering an RGB triplet into that space and creating a separate variable "C" defined as the RGB triplet and simply entering C into that space. Neither of which have worked. The vector defined as xPD is 13 by 13, which is obviously not the same size as the triplet. Does that have anything to do with the issue I am having? Thank you in advance.