MATLAB: How to plot x^2+z^2=9 above the xy plane and between y=-1 and y=2 between numbersplot syms x y z; [x,y,z]=meshgrid(-10:1:10); Z = realsqrt(9-x^2); surf(X,Y,Z); Best Answer How about:syms x y z;[x,y]=meshgrid(-10:1:10);z = abs(sqrt(9-x.^2));surf(x,y,z);ylim([-1 2]) Related SolutionsMATLAB: Plane y=x % plane z=x,figurehold onfsurf(@(x,y) x)% plane z = yfsurf(@(x,y) y)view(3) MATLAB: Intersection between a sphere x^2+y^2+z^2 =6 and paraboloid z=x^2+y^2 Your plot is fine.....check this for intersection. https://in.mathworks.com/matlabcentral/answers/93623-how-do-i-plot-the-line-of-intersection-between-two-surfaces Related Question
Best Answer