From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

MATRIXx

cancel
Showing results for 
Search instead for 
Did you mean: 

how can i concatenate two matrices?

 
0 Kudos
Message 1 of 4
(11,621 Views)

Hello,

To combine matrices, you can define a third matrix where the components of the third matrix are defined with the previously existing matrices.  For instance:

A=[1,4;5,7]

 

A (a square matrix) =

 

1 4

5 7

 

B=[6,9;10,8]

 

B (a square matrix) =

 

6 9

10 8

 

C=[A;B]

 

C (a rectangular matrix) =

 

1 4

5 7

6 9

10 8

 

I hope this helps.

 

Regards,

Angela M

Product Support Engineer

0 Kudos
Message 2 of 4
(11,620 Views)

Thanks Angela,

 

i would like to perform this concatenation using lab view

 

could you help me ?

 

0 Kudos
Message 3 of 4
(11,607 Views)

Hello rasha,

I am sorry for any confusion, questions about LabVIEW should be posted to the LabVIEW discussion forum.  MATRIXx is a different National Instruments product.  You can see all of the National Instruments forums here.  The LabVIEW forum is here.  I would recommend searching the forums and LabVIEW help for concatenate matrix or concatenate matrices.  Note that several of the functions in the array palette can be used with matrices.

 

Hope this helps,

Angela M

Product Support Engineer

0 Kudos
Message 4 of 4
(11,598 Views)