help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Making a 3d object have different colors on each side in Octave 5.1


From: RT
Subject: Making a 3d object have different colors on each side in Octave 5.1
Date: Mon, 4 Mar 2019 07:47:48 -0500

Is it possible to make a 3d object have different colors on each side (one side of an object one color like red and another side another color like blue) using surf?

%example
[x y] = meshgrid(-1:0.1:1); % Generate x and y data
z = zeros(size(x, 1)); % Generate z data
surf(x, y, z, 'FaceColor', 'red') % Plot the surface

How can I make the other side another color like blue?

--


reply via email to

[Prev in Thread] Current Thread [Next in Thread]