help-octave
[Top][All Lists]
Advanced

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

Re: Surfaces & pictures


From: inor0627
Subject: Re: Surfaces & pictures
Date: Sun, 17 May 2015 22:35:27 -0700 (PDT)

fbarbuto wrote
> Hi,
> Is there a way to project a picture (a jpg, png, whatever) onto a3-D
> surface plotted with surf()?

Hello Fausto,

In the function reference of surf, an additional color argument is
mentioned: 

"Optionally, the color of the surface can be specified independently of z by
supplying a color matrix, c."

So using your (maybe modified) picture as 'c', surf(xx,yy,zz,c) in
combination with an appropriate colormap might do the trick. 

Best regards,
Ingo






--
View this message in context: 
http://octave.1599824.n4.nabble.com/Surfaces-pictures-tp4670386p4670412.html
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

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