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

Community Tip - You can change your system assigned username to something more personal in your community settings. 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
Werner_E
25-Diamond I
(To:ptc-4676289)

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!

Werner_E
25-Diamond I
(To:ptc-4676289)

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!

Werner_E
25-Diamond I
(To:ptc-4676289)

You are welcome.

So you found, what you were searching for?

Yes, it was very informative and helpful!

Announcements

Top Tags