2d function in 3d

1 vue (au cours des 30 derniers jours)
felix jose chavez torres
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

Réponse acceptée

Star Strider
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
felix jose chavez torres
felix jose chavez torres le 26 Jan 2018
thanks!!
Star Strider
Star Strider le 26 Jan 2018
As always, my pleasure!

Connectez-vous pour commenter.

Plus de réponses (1)

Nicolas Schmit
Nicolas Schmit le 26 Jan 2018

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