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 ビュー (過去 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 Center および File ExchangeSurface and Mesh Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by