How do I make a plane graph completely to it's listed limits using surf without stopping at the intersection with the other surface?
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Jasmine Alvarez
le 28 Fév 2018
Commenté : Jasmine Alvarez
le 28 Fév 2018
When I graph the plane on its own, it graphs all the way to 0.05, which is what I want. However, when the paraboloid is graphed, the plane stops at the intersection.
RPM = 25;
R = .05;
h0 = .15;
%define constants and change units
omega = RPM*2*pi/60; %[rad/s]
g = 9.807; %[m/s^2]
r = linspace(0,R); %[m]
phi = linspace(0,2*pi); %[rad]
%PLOT
[r,phi] = meshgrid(r,phi);
[X,Y] = meshgrid(linspace(0,R),linspace(0,R));
%equation of surface
z = h0 - omega^2/(2*g)*(R^2/2 - r.^2); %[m]]
plane = h0*ones(100,100);
surf(X,Y,plane);hold on
surf(r.*cos(phi),r.*sin(phi),z);

0 commentaires
Réponse acceptée
KSSV
le 28 Fév 2018
RPM = 25;
R = .05;
h0 = .15;
%define constants and change units
omega = RPM*2*pi/60; %[rad/s]
g = 9.807; %[m/s^2]
r = linspace(0,R); %[m]
phi = linspace(0,2*pi); %[rad]
%PLOT
[r,phi] = meshgrid(r,phi);
[X,Y] = meshgrid(linspace(-R,R),linspace(-R,R));
%equation of surface
z = h0 - omega^2/(2*g)*(R^2/2 - r.^2); %[m]]
plane = h0*ones(100,100);
surf(X,Y,plane);hold on
surf(r.*cos(phi),r.*sin(phi),z);
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Surface and Mesh Plots 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!