Readtable Delimiters on two similar files gives differing result
Is there any reason why using Readtable to open the following 2 csv files produces different results
Im using readtable as it has the ability to auto detect how many lines to skip, and generally works well – except for the case above and I can’t see why. My aim is to get the real data into a uitable
try
[file,folder]=uigetfile({‘*.csv’;’*.xls’},’Open Image’,app.startfolder);
catch
[file,folder]=uigetfile({‘*.csv’;’*.xls’},’Open Image’,’C:’);
end
fullpath=fullfile(folder,file);
app.startfolder=folder;
T = readtable(fullpath,MissingRule="omitrow",Delimiter=","); %Delimiter="tab"
app.UITable.Data=table2array(T);
This is what I am seeing:
I have tried omitting the Delimiter option in readtable, but with no luck
(Note my header files can be different which is why I want to try and avoid skipping " a known number of " rows.)Is there any reason why using Readtable to open the following 2 csv files produces different results
Im using readtable as it has the ability to auto detect how many lines to skip, and generally works well – except for the case above and I can’t see why. My aim is to get the real data into a uitable
try
[file,folder]=uigetfile({‘*.csv’;’*.xls’},’Open Image’,app.startfolder);
catch
[file,folder]=uigetfile({‘*.csv’;’*.xls’},’Open Image’,’C:’);
end
fullpath=fullfile(folder,file);
app.startfolder=folder;
T = readtable(fullpath,MissingRule="omitrow",Delimiter=","); %Delimiter="tab"
app.UITable.Data=table2array(T);
This is what I am seeing:
I have tried omitting the Delimiter option in readtable, but with no luck
(Note my header files can be different which is why I want to try and avoid skipping " a known number of " rows.) Is there any reason why using Readtable to open the following 2 csv files produces different results
Im using readtable as it has the ability to auto detect how many lines to skip, and generally works well – except for the case above and I can’t see why. My aim is to get the real data into a uitable
try
[file,folder]=uigetfile({‘*.csv’;’*.xls’},’Open Image’,app.startfolder);
catch
[file,folder]=uigetfile({‘*.csv’;’*.xls’},’Open Image’,’C:’);
end
fullpath=fullfile(folder,file);
app.startfolder=folder;
T = readtable(fullpath,MissingRule="omitrow",Delimiter=","); %Delimiter="tab"
app.UITable.Data=table2array(T);
This is what I am seeing:
I have tried omitting the Delimiter option in readtable, but with no luck
(Note my header files can be different which is why I want to try and avoid skipping " a known number of " rows.) readtable, uitable MATLAB Answers — New Questions