How can I turn vertical to horizontal?

3 次查看(过去 30 天)
>>[X,Y,~]=sphere(21);
>>s=sin(0:2*pi/21:2*pi);
>>Z=repmat(s',1,22);
>>figure(12);
>>subplot(1,2,1);
>>surf(X,Y,Z);
>>alpha(0.5);
>>xlabel('x');ylabel('y');zlabel('z');

采纳的回答

Ameer Hamza
Ameer Hamza 2020-5-19
编辑:Ameer Hamza 2020-5-19
Something like this
[X,Y,~]=sphere(21);
s=sin(0:2*pi/21:2*pi);
Z=repmat(s',1,22);
figure(12);
subplot(1,2,1);
surf(X,Y,Z);
alpha(0.5);
xlabel('x');ylabel('y');zlabel('z');
pbaspect([1 1 1])
subplot(1,2,2);
surf(Z,Y,X);
alpha(0.5);
xlabel('x');ylabel('y');zlabel('z');
pbaspect([1 1 1])

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Title 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by