Greeting everyone!
What i have now is 3 Matrix x,y,z, which can be presented by surf(x,y,z).
But i want to transfer these data to one matrix containing height value, which can be presented by surf(f).
Thanks!
Here is my data:
[x,y,z] = sphere;
x = x(11:end,:);
y = y(11:end,:);
z = z(11:end,:);
r = 3;
x=r*x+r;
y=r*y+r;
z=r*z;
2 Comments
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/377825-how-to-transfer-surf-x-y-z-to-a-data-contains-height-value#comment_526078
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/377825-how-to-transfer-surf-x-y-z-to-a-data-contains-height-value#comment_526078
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/377825-how-to-transfer-surf-x-y-z-to-a-data-contains-height-value#comment_526264
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/377825-how-to-transfer-surf-x-y-z-to-a-data-contains-height-value#comment_526264
Sign in to comment.