I have some xls files, which they all have merged cells in specific columns. so when I use xlsread, the data of that column is read as NaN. for example when my data is:
1 2 2 5
3 1 2 1
2 4 2 3
if the last column be the merging result of 4th and 5th columns, when I use xlsread the output will be:
1 2 2 NaN
3 1 2 NaN
2 4 2 NaN
For my real data, it is time consuming to unmerge columns in excel before importing. how can I import them to MATLAB in the merged format?
xlsread
. You may also be interested in the 3rd output, which contains both numeric and string data. – Phil GoddardMATLAB
tag. IMHO it is suitable here, although could be improved by showing some code. None the less, the question is pretty clear to anyone who's loaded spreadsheet data into MATLAB. – Phil Goddard