"Wtah is can be wrong?"
The number of rows of all of the matrices are not the same. Take a look at the last one, it has one row fewer than the rest, so there is no way to horizontally concatenate those arrays:
66077x1 double
66077x1 double
66077x1 double
66077x1 double
66077x1 double
66077x1 double
66077x1 double
66076x1 double
You will have to ensure that they have the same number of rows, which might involve one of these:
- fix the file itself.
- fix your file importing code (e.g. detect missing values).
- pad the last array.
- trim the previous arrays.
I would recommend converting decimal commas to decimal point before using textscan (which happily accepts a string as its input), e.g. (pseudocode):
str = fileread(...
str = strrep(str,',','.')
C = textscan(str,'%f%f%f...',...
Best Answer