Matrix to vector
Posted: Tue Aug 12, 2014 5:53 am
Good afternoon.
I wonder if there is a way (command) to put all the elements of a matrix (row by row) into a vector without using a loop.
Example:
Matrix A = [2 3
4 5]
Vector B = [2 3 4 5]
Thanks in advance
I wonder if there is a way (command) to put all the elements of a matrix (row by row) into a vector without using a loop.
Example:
Matrix A = [2 3
4 5]
Vector B = [2 3 4 5]
Thanks in advance