MATLAB: Changing Matrix to Row

generalMATLABMATLAB and Simulink Student Suitematrixreorderingvector

Hello,
Please how can I change this matrix:
coord =
0 0
10928 0
6928 4000
into this: coord = coord=[0 0 10928 0 6928 4000]
i.e. I want to place the rows next to each other
I want the general form for whatever coord's size is. Usually it's going to be nx2

Best Answer

m=[ 0 0
10928 0
6928 4000]
m=m'
m=m(:).'