
How can I turn vertical to horizontal?
1 回表示 (過去 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');
0 件のコメント
採用された回答
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])

2 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Subplots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!