MATLAB Answers

0

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

Asked by Jasmine Alvarez on 28 Feb 2018
Latest activity Commented on by Jasmine Alvarez on 28 Feb 2018
Accepted Answer by KSSV
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 Comments

Sign in to comment.

1 Answer

Answer by KSSV
on 28 Feb 2018
 Accepted Answer

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);