2d function in 3d
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
felix jose chavez torres
le 25 Jan 2018
Commenté : Star Strider
le 26 Jan 2018
i need to show this function y = x^2 in 3d in matlab
0 commentaires
Réponse acceptée
Star Strider
le 26 Jan 2018
Modifié(e) : Star Strider
le 26 Jan 2018
Try this:
x = [1;1] * linspace(-4, 4, 25) ;
y = x.^2;
figure(1)
surf(x, y, [zeros(size(x(1,:))); 5*ones(size(x(1,:)))], 'EdgeColor','b')
grid on
view(-75, 45)
EDIT — Added plot.
2 commentaires
Plus de réponses (1)
Voir également
Catégories
En savoir plus sur Graphics Object Programming dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!