From: corey kennedy on
What must be done to generate a checkboard and then be able to rotate it with respect to 3-dimensions?
I have used:K = (checkerboard(100)>.5);
figure, s=imshow(K)
axis on
so far to generate the image. If I use rotate3d(s) now, it will not display the checkerboard during the rotation....
From: Walter Roberson on
corey kennedy wrote:
> What must be done to generate a checkboard and then be able to rotate it
> with respect to 3-dimensions? I have used:K = (checkerboard(100)>.5);
> figure, s=imshow(K)
> axis on
> so far to generate the image. If I use rotate3d(s) now, it will not
> display the checkerboard during the rotation....

K = double(checkerboard(100) > .5);
figure
surf(zeros(size(K)),'CData', repmat(K,[1,1,3], 'FaceColor', 'texturemap');
shading flat;