Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: texture mapping images on the faces of a cube
Replies: 1   Last Post: Jan 31, 2013 6:46 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Ravi

Posts: 10
Registered: 5/3/12
Re: texture mapping images on the faces of a cube
Posted: Jan 31, 2013 6:46 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi,
Thought it may help to shorten my original question to a single point :
I can understand it when X and Y are specified as vectors in the following command i.e. X=1:dim(Z,2) and Y=1:dim(Z,1)
surface('XData',X,'YData',Y,'ZData',Z,'CData',C)
How do I interpret their specification as matrices? For example, what does the following mean :
surface([-1 -1; -1 -1], [-1 1; -1 1], [-1 -1; 1 1], ...
'FaceColor', 'texturemap', 'CData', cdatar );
I will be grateful for any help that I can get.
Thanks,
Ravi



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.