Skip to main content
1-Visitor
May 11, 2013
Solved

Programmatically Creating a Nested Array

  • May 11, 2013
  • 2 replies
  • 1887 views

Hi MathCad Experts,

Step 1 I have a 3x3 matrix t[1] with 1's and 0's . I want to insert another 3x3 matrix "One" into U if the element of t[1] is 1 other insert 3x3 matrix zero as a Nested Array.

Step 2 Convert to a Matrix.

I have not done this previously so I would like your suggests/help.

Thanks.

Capture.JPG

Best answer by Werner_E

Here is the flattening part, too, unnesting the matrices

2 replies

25-Diamond I
May 12, 2013

See if the attached would help

Werner_E25-Diamond IAnswer
25-Diamond I
May 12, 2013

Here is the flattening part, too, unnesting the matrices

thiirane1-VisitorAuthor
1-Visitor
May 12, 2013

Ahhh... Yes... Thanks.

Russell