How do I make a plane graph completely to it's listed limits using surf without stopping at the intersection with the other surface?

1 visualización (últimos 30 días)
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);

Respuesta aceptada

KSSV
KSSV el 28 de Feb. de 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);

Más respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by