How to save an image of a surface where the warp function was applied

I have built a surface in matlab and I used the print function to save a jpeg image of the surface. I was easily able to do that. However i wrapped a two demensional image over this three demensional surface by using the warp function. When using the print function to save the image, the image comes up as a blank plot. Does anyone know to save an image of a 3d surface when the warp function is applied? my code is shown below:
[x,y,z] = ellipsoid(0,0,0, 5,4,2,10);
threeDsurface = surf(x,y,z);
cd('C:\Documents\research');
wrappedimage = imread('image3.jpg', 'jpg');
warp(z, y, x, image3);
print(gcf, '-djpeg','figure.jpeg');

Answers (0)

Tags

Asked:

on 17 Oct 2012

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!