Consider the following code:
f=@(x,y) (x.^2-y.^2)./(x.^2+y.^2); [X,Y]=meshgrid(linspace(-1,1)); Z=f(X,Y); surfc(X,Y,Z)
How can I replace the edge lines on a surface project on the XY plane with lines that run along the 'surf' plot generated, and which when projected in the XY plane, give the lines given by 'surfc'?
Best Answer