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

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

How to plot a two-dimentional matrix?

ptc-4676289
1-Newbie

How to plot a two-dimentional matrix?

In Mathcad we can easely plot a two-dimentional function z=Z(x,y)

Is there a way, to plot a two-dimentional matrix z=Mj,j ?

Thank you!

8 REPLIES 8

Is there a way, to plot a two-dimentional matrix z=Mj,j ?

Sure, if you are happy with the indices i and j to be taken as x and y values you can plot M the same as f via quickplot (= simply put M in the placeholder of the 3D-plot).

If not you would need the vectors of associated x and y values and would have to create a data structure of nested matrices like createmesh() produces.

Thank you very much!

One way to do it: M[i, j -> f(x, y) -> Surface

1-1-M15.png

or Mathcad Prime

1-1a-Prime.png

and the plot

1-2-Surface.png

Thank you very much, Valery!

Find attached some ways to plot data matrices:

1) Quickplot

2) nested data arrays

3) turning the matrix into a function using

a) linear interpolation, or

b) cubic spline interpolation

Hope you find soemthing which fits your needs.

Thank you very much!

You are welcome.

So you found, what you were searching for?

Yes, it was very informative and helpful!

Top Tags