NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
rasha
Posts: 14
0 Kudos

how can i concatenate two matrices?

 
Active Participant
Angela M
Posts: 245
0 Kudos

Re: how can i concatenate two matrices?

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

Member
rasha
Posts: 14
0 Kudos

Re: how can i concatenate two matrices?

Thanks Angela,

 

i would like to perform this concatenation using lab view

 

could you help me ?

 

Active Participant
Angela M
Posts: 245
0 Kudos

Re: how can i concatenate two matrices?

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

Member
artcu
Posts: 1
0 Kudos

Re: how can i concatenate two matrices?

Member
andystep
Posts: 1
0 Kudos

Re: how can i concatenate two matrices?

Thanks for this.  Just the answer I was looking for.  Does this not cause duplication?

Founder and developer of Careworx Care Home Jobs, Care Jobs and Nurse Jobs system.
By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page