How can I load .tab file with header in MATLAB ?
Show older comments
There is excel file in .tab format of size approximately 300MB, opening in excel using delimited data type after pressing next giving option of all delimiters and column data format as a general.Now data comes in excel sheet,now want to load this file in matlab, this also having headers & I also want to load .tab directly in MATLAB, How can I?
Answers (1)
Walter Roberson
on 14 May 2013
0 votes
xlsread() to read from the excel sheet.
textscan() with 'Delimiter', '\t' to read from the .tab directly.
4 Comments
RS
on 14 May 2013
Walter Roberson
on 14 May 2013
Adapting an example from the online documentation for xlsread:
filename = 'myExample.xlsx';
sheet = 1;
header_xlRange = 'A:D';
[headers_nums, header_text] = xlsread(filename, sheet, header_xlRange);
body_xlRange = 'E:'; %I am not certain about this
body_nums = xlsread(filename, sheet, body_xlRange);
RS
on 16 May 2013
RS
on 18 May 2013
Categories
Find more on Spreadsheets in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!