Skip to main content
1-Visitor
January 21, 2015
Solved

more-than-2 dimensions matrix

  • January 21, 2015
  • 3 replies
  • 4352 views

Hi,

Is it possible *somehow* in Mathcad to have more-than-2 dimension matrix ? I don't want to represent them (that would be really awkard), just to define and read the elements, do some math ... the usual.

The only thing I saw that came close was to use nested matrix, but that gets a bit messy in terms of reading. X[a,b,c looks a lot better than ((X[a)[b)[c ...

Thanks

Best answer by RichardJ

We have complained about this for many years too. The very obvious indexing schemes such as you show only work on the rhs of an assignment operator, not on the lhs. It makes for some additional pain when using nested arrays!

3 replies

19-Tanzanite
January 21, 2015

We have been asking for multidimensional arrays for at least the last 15 years. Mathsoft never gave any indication that they listened to the numerous requests for this feature, and when PTC purchased Mathsoft they apparently purchased the deafness along with the product. So the only solution is a hack job using nested arrays.

17-Peridot
January 21, 2015

Hi Adrien,

unfornately no! It is not possible. I hope that MC prime will some day introduce 3D matricees. Until then we'll have to cope with PTC's "messy" implementation of matrix definitions.

Raiko

athurin1-VisitorAuthor
1-Visitor
January 21, 2015

Thanks a lot. Nested matrix it will be then. *sigh*

athurin1-VisitorAuthor
1-Visitor
January 21, 2015

I guess the next question is : What am I doing wrong in declaring my nested matrix ? A general declaration with all indexes varying doesn't seem to work. I assume a loop would do it, but that's a bit of a pain.

nested.png

(Assuming i,j,k,u, Vin,Vout,fsw and t are defined properly)

24-Ruby IV
January 22, 2015

One exapmple of 3D-matrix and its interpolation

http://twt.mpei.ac.ru/ochkov/Mathcad_12/4_04_4D_Spline.png

13-Aquamarine
January 22, 2015

Out of curiosity how do you create a blank line (first row) in matrix 2 and 3?

24-Ruby IV
January 22, 2015

FDS wrote:

Out of curiosity how do you create a blank line (first row) in matrix 2 and 3?

We must have a 2x3 or 2x4 matrix and inert (copy and paste) vectors and matrix.