I have a 1 x 2500 cell array created from a .txt file. Each cell has one long string of many individual numbers that I need. EX: '1 2 3 4 5 6 7 8 9'
I need to make each number in the entire cell array a double value type. str2double doesn't work because I need to split up the string. I tried using strsplit but maybe I was doing it wrong.
Any advice?
1 Comment
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/652723-change-data-type-of-entire-cell-array#comment_1144783
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/652723-change-data-type-of-entire-cell-array#comment_1144783
Sign in to comment.