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

2 次查看(过去 30 天)
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);

采纳的回答

KSSV
KSSV 2018-2-28
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);

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Surface and Mesh Plots 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by