Converting from 1 x n x 3 to n x 3

4 views (last 30 days)
C Smyth
C Smyth on 28 Feb 2018
Answered: KL on 28 Feb 2018
I have a file with the data as image one. But my code will only work if the data is in a n x 3 matrix (e.g. image 2)

Accepted Answer

KL
KL on 28 Feb 2018
squeeze(your_matrix)
eg: squeeze(1xnx3) gives you nx3 matrix

More Answers (0)

Categories

Find more on Convert Image Type in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!