Skip to main content
1-Visitor
May 3, 2012
Solved

Convert Nested Array to Matrix

  • May 3, 2012
  • 1 reply
  • 9457 views

From:

nested to matrix.bmp

Best answer by ValeryOchkov

na2m.png

1 reply

24-Ruby IV
May 3, 2012
23-Emerald V
May 26, 2012

Here's another approach ...

collab - nest to flat array 01.jpg

Even works in Prime 1.0

collab - nest to flat array 02.jpg

Stuart

24-Ruby IV
May 27, 2012

Yes, we can have here only one loop for!

We have in Mathcad Prime a new operator returns a matrix row:

na2matrix.png

One additional quastion.

Can you convert a matrix into a vector (create a matrix2vector function) with one loop for?

I can do it in Mathcad 15 but not in Mathcad Prime.