How can I load .tab file with header in MATLAB ?
Afficher commentaires plus anciens
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?
Réponses (1)
Walter Roberson
le 14 Mai 2013
0 votes
xlsread() to read from the excel sheet.
textscan() with 'Delimiter', '\t' to read from the .tab directly.
4 commentaires
RS
le 14 Mai 2013
Walter Roberson
le 14 Mai 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
le 16 Mai 2013
RS
le 18 Mai 2013
Catégories
En savoir plus sur Spreadsheets dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!