Here is the code:
>> fid = fopen('dump.dat');
>> line_ex = fgetl(fid)
line_ex =
'106,94,241,11,190,237,209,224'
>> newStr = split(line_ex,',')
newStr =
8×1 cell array
'106'
'94'
'241'
'11'
'190'
'237'
'209'
'224'
>> cell2mat(newStr)
Error using cat
Dimensions of matrices being concatenated are not consistent.
Error in cell2mat (line 83)
m{n} = cat(1,c{:,n});
This error is mind boggling. I am not trying to concatenate anything by running the cat function.
The '106' is actually seen by MATLAB is three separate ASCII characters. I just need to convert the cell array into a simple vector of numbers.
str2matorstr2double.round.