Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
Hi all
I'm pretty new to Mathcad so am just learning the ropes. I'm having trouble with creating a 3D surface plot of a function with two variables. Can anyone see where I'm going wrong?
Thanks in advance
Ben
Solved! Go to Solution.
Ben Fulford wrote:
Hi all
I'm pretty new to Mathcad so am just learning the ropes. I'm having trouble with creating a 3D surface plot of a function with two variables. Can anyone see where I'm going wrong?
Thanks in advance
Ben
Ben
The 3D plot algorithm defaults to a range of -5 to +5 over both axes. This results in complex numbers when applied to Npmelt - hence the complaint. You need to manually set the range you want in the 'Quickplot' tab on the 3D plot dialog or use CreateMesh to generate the data. I've attached a worksheet that uses a variant of matrix to create the Npmelt array.
Stuart
Ben Fulford wrote:
Hi all
I'm pretty new to Mathcad so am just learning the ropes. I'm having trouble with creating a 3D surface plot of a function with two variables. Can anyone see where I'm going wrong?
Thanks in advance
Ben
Ben
The 3D plot algorithm defaults to a range of -5 to +5 over both axes. This results in complex numbers when applied to Npmelt - hence the complaint. You need to manually set the range you want in the 'Quickplot' tab on the 3D plot dialog or use CreateMesh to generate the data. I've attached a worksheet that uses a variant of matrix to create the Npmelt array.
Stuart
Thanks for your help.
Unfortunately, for some reason I can't display the 3D plots. They don't even display in the Quicksheets. Is there a setting I need to change somewhere?
Ben Fulford wrote:
Thanks for your help.
Unfortunately, for some reason I can't display the 3D plots. They don't even display in the Quicksheets. Is there a setting I need to change somewhere?
What version of Mathcad are you using on which operating system?
Some people have reported similar problems that have been cured by either turning off borders around plots - I don't recall them on your worksheet - or turning off hardware graphics acceleration.
Stuart
Hi,
I'm running Mathcad 15 on Windows 7. Borders are off.
Ben
Ah, now borders are off and everything's working great.
Thanks for the help!