ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Convert matrix in one row vector

Solved!
Go to solution

Hi,

Does anyone know what is the best way to create one row matrix (vector) from M x N matrix by putting all rows, from 1 to M, of the original matrix into first row of new matrix the following way:

 

A = [row1; row2, ..., rowM]

B = [row1, row2, ..., rowM]

Example:

 

A = [1 1 0 0; 0 1 0 1]

B = [1 1 0 0 0 1 0 1]

 

 


0 Kudos
Message 1 of 3
(5,387 Views)
Solution
Accepted by topic author NapDynamite
0 Kudos
Message 2 of 3
(5,381 Views)

Worked!! Thank you


0 Kudos
Message 3 of 3
(5,353 Views)