graphics - How do I set a surf to one color (no gradient) in my matlab-plot? -


There are three vectors (x, y and z) in my dataset. I tell these values ​​as plots 3 (X, Y, Z) in the form of dots in 3D-plot, which is fine. I want to show an aircraft in the same plot. To get the figure of this plot I use linear regression on X and Y so that a new z is possible.

It looks like this:

alt text

< P> I want to fill surf with only one color (with light blue or brown color) and set ambiguity, through seeing it How can I do this?

The easiest way to create a surface whose only color and transparency is the value of the surface Setting the 'FaceColor' and 'face alpha' property of the object:

hSurface = surf (... to make your objects surface object ...); Set (H surveys, face cloors', [1], 'face alpha', 0.5);

This example determines the color of the red surface and the transparency of 0.5. You can also set the properties of the side (with 'Edge Collar' and 'Aegelfa').


Comments