Thursday, October 20, 2016

Matlab cell2mat: empty matrix 0-by-152

When I read a matrix using textscan and then tried converting it to a matrix, I got an empty matrix.

No solutions provided by Google when I searched.


My solution:
The input file had an extra empty line. Remove that line/linebreak char, and then repeat the importing process.

Now it works.


No comments:

Post a Comment