This is a bit tricky as Mathcads 3D-plot is quite limited.
You can only plot over a rectangular area of the xy-plane.
You can set the x- and y limits when you double click the plot to get into the plot format menu and then chose the tab "QuickPlot Data".
If you set eg Range1 to run from -10 to 0 and Range2 from 2 to 10 you will see a plot as all meshpoint evaluate to real values.
As you have seen, the whole plot fails even if just one single pair (x,y) evaluates to a non-real number or to NaN.
Another way round is to redefine your function to return a dummy value (-1 in my example) in case the value would get non-real.
Then I set the z-axis manually to go from 0 to whatever seems appropriate so the dummy values are hidden.
One other thing is to use CreateMesh. It gives you a better control over the x- and y-limits and you don't have to change them in the format menu.

Welcome to the PTC Community
No account yet? Create an account
Please use your PTC eSupport account.
LoginEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.

