how to project images on the side walls of a 3D surf plot
조회 수: 25 (최근 30일)
USing for example the next surf plot:
[X,Y,Z] = peaks(30);
(in my script, X, Y and Z are vectors)
I would like to complete the next 2 tasks:
a. to project an image into one of the side walls which are white. b. to have the projection of the Z-X array (2D plot) in the other white side wall.
Is that possible? If yes, any help or idea is more than welcome. thank you,
Sven 2014년 2월 27일
편집: Sven 님. 2014년 2월 27일
Does this code get you on your way?
R = 0:0.1:1;
z = cos(-R); % that'd be your current y-function
th = 0:pi/20:2*pi;
X = bsxfun(@times,R',cos(th)) + 1;
Y = bsxfun(@times,R',sin(th)) + 1;
Z = repmat(z',1,length(th));
C = surfc(Z,X,Y);
for i = 2:length(C)
Ch = C(i);
If that's not what you're looking for, can you elaborate on the question?