cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

3D Plot Input Data

TW_9152075
2-Guest

3D Plot Input Data

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 ❤️
1 ACCEPTED SOLUTION

Accepted Solutions

6 REPLIES 6

ty 🙂

 

thanks, thats what I was aiming for 🙂

payman
13-Aquamarine
(To:TW_9152075)

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.

ty 🙂

Announcements
Check out the latest
Mathcad Tip
"PTC Mathcad 15 / Prime 1-6 Update."