Skip to main content
1-Visitor
June 22, 2021
Solved

3D Plot Input Data

  • June 22, 2021
  • 3 replies
  • 3572 views

Hi there,

 

the PTC Mathcad help say if i want to use a matrix as Input Data for 3D Plots there are 2 ways:

 
A 3-column matrix, where the three columns represent the x-, y-, and z-coordinates
A m*n matrix, where the cell’s indices represent the x- and y-coordinates and the cell values represent the z coordinates
 
I need the first one, but my Mathcad (using Mathcad 15) allways plots my matrix like the second case.
 
How can I change this and tell the Plot that my matrix has the coordinates in the collums and not int the indices and values?
 
thanks a lot ❤️
Best answer by terryhendicott

Hi,

Capture.JPG

3 replies

ttokoro
21-Topaz I
21-Topaz I
June 22, 2021
1-Visitor
June 25, 2021

ty 🙂

 

21-Topaz II
June 22, 2021

Hi,

Capture.JPG

1-Visitor
June 25, 2021

thanks, thats what I was aiming for 🙂

1-Visitor
June 23, 2021

Please see the worksheet provided. The first plot uses the CreateMesh() function, a fast and preferred method for creating 3D plots.
The matrix is unrolled for the second plot, resulting in three columns of data: x, y, and f(x,y). You'll notice how time-consuming it is, as well as how the plot quality suffers.

Payman.

1-Visitor
June 25, 2021

ty 🙂