Skip to main content
1-Visitor
February 2, 2016
Solved

Help with creating a surface plot

  • February 2, 2016
  • 3 replies
  • 1917 views


I have tried to create a surface plot where I fractional increments but have not managed to do this and can't find my error

Best answer by Fred_Kohlhepp

Mathcad has this great function called "CreateMesh"

3 replies

23-Emerald I
February 2, 2016

Mathcad has this great function called "CreateMesh"

Jbryant611-VisitorAuthor
1-Visitor
February 3, 2016

Thankyou

19-Tanzanite
February 2, 2016

In a range variable a,b..c, b is the second value, not the increment. So 1,0.1..10 is not a valid sequence. You need 1,1.1..10.

Or, as Fred suggests, use CreateMesh.

Jbryant611-VisitorAuthor
1-Visitor
February 3, 2016

Thanks....Thats what happens when you stop using Mathcad for a while and use Matlab!

25-Diamond I
February 2, 2016

Some additional remarks:

- You don't need to define a new function Z to use CreateMesh as Fred had done. You can use your function Is instead of Z directly in CreateMesh.

- In your approach (using the modification Richard suggested - 1.1 instead of 0.1) you may notice, that the abscissa and ordinate values are not correct. They are replaced by 0,1,2 ....

- Not recommended but possible: You may do without any program or CreateMesh and simply put "Is" in the placeholder of the 3D-plot component. You will get a division by zero error, because by default Mathcad varies both independent variables from -5 to +5 an eventually will also choose sigma=0, which throws the error. Double click the plot region and in tab "Quickplot Data" you can select suitable ranges for your variables.

Anyway, I already said that this is not recommended, as CreateMesh is easier and more comfortable to use.

R

Jbryant611-VisitorAuthor
1-Visitor
February 3, 2016

Thankyou