3D plotting in Matlab
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
shraddha s
il 23 Nov 2016
Commentato: Star Strider
il 24 Nov 2016
How to plot a 3d 'U' shape in MATLAB parallel to XY plane?
2 Commenti
Dcember
il 23 Nov 2016
Hope it helps:
[y,z]=meshgrid(linspace(-10,10));
x=y.^4;
surf(x,y,z)
xlabel('x')
ylabel('y')
zlabel('z')
Risposta accettata
Star Strider
il 23 Nov 2016
Try this:
x = linspace(-pi*0.49, pi*0.49);
y = abs(tan(x));
z = 5*ones(size(x));
figure(1)
plot3(x, y, z, 'LineWidth',2)
grid on
producing:

4 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Labels and Styling 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!