Search All of the Math Forum:

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

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

 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

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

Date Subject Author
1/30/13 Ravi
1/31/13 Ravi