Effacer les filtres
Effacer les filtres

Adapting a paraboloid code

3 vues (au cours des 30 derniers jours)
Jonathan Bird
Jonathan Bird le 12 Avr 2018
Commenté : Walter Roberson le 12 Avr 2018
I found the following code to plot a paraboloid but now I need to adapt it to change the base radius and height, thanks
[r,the]=meshgrid([0:0.1:5],[0:pi/10:2*pi]);
x1=r.*cos(the);
y1=r.*sin(the);
z1=x1.^2+y1.^2;
surf(x1,y1,z1)
  1 commentaire
Walter Roberson
Walter Roberson le 12 Avr 2018
The radii are the [0:0.1:5] values in the meshgrid()

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Geology 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