MATLAB: How to plot a constant Z value with varying X and Y surface I want to plot a value of Z=3 for X=1:50 and Y=1:50 so that I can get a plane surface plot. Any suggestions please? Best Answer [X,Y] = meshgrid(1:50,1:50);Z=3*ones(length(Y),length(X));surf(X,Y,Z);Best wishesTorsten. Related SolutionsMATLAB: How to plot x^2+z^2=9 above the xy plane and between y=-1 and y=2 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]) MATLAB: How to write equation in matlab k2 = @(x,y) k1(x,y+p/2)*(y>p/2);Best wishesTorsten. Related QuestionHow to write this in matlab
Best Answer