Hello,
I got an error in cell2mat. Dimensions of matrices being concatenated are not consistent. Wtah is can be wrong?
data=cellfun(@str2num, array) does not help. Its giving 'NaN NaN NaN…'.
A code:
textFile = textscan(FileID, '%*s %*s %*s %*s %*s %s %s %s %s %s %s %s %s', 'Delimiter', '\t', 'headerlines', 54);fclose(FileID);clear FileIDfor i = 1:size(textFile,2) textFile{i} = strrep(textFile{i}, ',', '.');textFile{i} = str2double(textFile{i});endclear im = cell2mat(textFile);Signal = [m(:,1) m(:,3) m(:,4)];clear textFileclear m
textFile looks like:
66077×1 double 66077×1 double 66077×1 double 66077×1 double 66077×1 double 66077×1 double 66077×1 double 66076×1 double
and a first single cell:
0,002199999944423330,006199999843374830,01019999974232630,0141999996412778
Best Answer