Convert 1x1x6381 double to 6381x1 double?

14 views (last 30 days)
I have a column of data in the form 1x1x6381 as seen in image but I want it in the form of 6381x1. So as 76.7309 76.5815 76.5777 etc.
Thanks
  2 Comments
Dennis
Dennis on 25 Apr 2018
if A is 1x1x6381
B=reshape(A,size(A,3),1)
should do the trick

Sign in to comment.

Accepted Answer

Stephen23
Stephen23 on 25 Apr 2018
Edited: Stephen23 on 25 Apr 2018
If A is your array, then this will convert it into a column vector, regardless of its original size:
A(:)

More Answers (0)

Categories

Find more on Data Types in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!