is there a way to flip an array

1 view (last 30 days)
Raul Castillo
Raul Castillo on 20 Nov 2019
Edited: the cyclist on 20 Nov 2019
i exported some data and need it to go from 27x1 to1x27 is there any way to do that without rewriting all the data

Answers (1)

the cyclist
the cyclist on 20 Nov 2019
Edited: the cyclist on 20 Nov 2019
Yes, the transpose command.
xt = x.';
% or
xt = transpose(x);

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!