MATLAB: Convert 262144×1 into 1×262144.

reshapevector

I have the following: 256×1 double, I want to convert it into 1×256 double. How it will be done?
for example if we have 5×1 double:
12
23
34
56
134
Now convert it into like this: 12 23 34 56 134

Best Answer

If A is your array..just transpose it.
iwant = A'
Read about transpose.