Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X
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!
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
or Mathcad Prime
and the plot
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!