![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/294654/image.png)
How can I turn vertical to horizontal?
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Mara Pereira
il 19 Mag 2020
Commentato: Ameer Hamza
il 19 Mag 2020
>>[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 Commenti
Risposta accettata
Ameer Hamza
il 19 Mag 2020
Modificato: Ameer Hamza
il 19 Mag 2020
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])
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/294654/image.png)
2 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Title in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!