[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fwd: Plot an image in 3D using surf function.
From: |
JasonNicholson |
Subject: |
Re: Fwd: Plot an image in 3D using surf function. |
Date: |
Sun, 8 Sep 2013 07:49:54 -0700 (PDT) |
This example works. The needed picture is attached.
xlabel('x');
ylabel('y');
zlabel('z');
img = imread('1.jpg'); %# Load a sample image
xImage = [-0.5 0.5; -0.5 0.5]; %# The x data for the image corners
yImage = [0 0; 0 0]; %# The y data for the image corners
zImage = [0.5 0.5; -0.5 -0.5]; %# The z data for the image corners
surf(xImage,yImage,zImage,... %# Plot the surface
'CData',img,...
'FaceColor','texturemap');
1.jpg <http://octave.1599824.n4.nabble.com/file/n4657141/1.jpg>
--
View this message in context:
http://octave.1599824.n4.nabble.com/Plot-an-image-in-3D-using-surf-function-tp4657126p4657141.html
Sent from the Octave - General mailing list archive at Nabble.com.