MATLAB: Importing ascii file in matlab with tab as delimiter

asciidelimitertab

I need to import the ascii file from matlab script with tab as delimiter and the variables names should be from row 3 and
the data to be imported from A6 to D1000 . Can anyone please help me on this

Best Answer

You can try the following.
if true
fname = 'pathtofile.txt';
opts = delimitedTextImportOptions('VariableNamesLine',3,'DataLines',6,'Delimiter','\t');
out = readtable(fname,opts);
end