Effacer les filtres
Effacer les filtres

How to graph the projections of some surface on the XZ and YZ planes using plot3()

2 vues (au cours des 30 derniers jours)
SB
SB le 15 Oct 2012
I've already attempted to do this and was wondering if someone could help me with my code:
function[]=plot10() x=linspace(-pi,pi) y=linspace(-pi,0) y2=zeros(100) x2=zeros(100) [X,Y]=meshgrid(x,y) Z=sin(X).*cos(Y) surf(Z) title('Z = sin(x).*cos(y)') xlabel('X') ylabel('Y') zlabel('Z') hold on plot3(X,y2,Z) plot3(x2,Y,Z) hold off

Réponses (0)

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by