I have been attempting to create a 3d object by rotating a 2d plot utilizing the cylinder function. But for some reason my plot comes out with this funnel attached to the bottom. Could you possibly bring some insight on how I may be able to create the shape located above the funnel? To be clear the shape above is exactly what we would expect.
Heres the code.
sigx = minValue:fidelity:maxValue;
VM = (1/(sqrt(2)) .* sqrt((sigx-sigy).^2 + (sigy).^2 +(-sigx).^2));
[x,y,~] = find(VM<Yieldstr);
PStress = [sigx(y).' sigy(x)];
[X,Y,Z] = cylinder(PStress);
Please let me know if you can think of a better way to achieve this 3d shape.