Loading a excel file in which I want to take only A, C not B and D, how can I improve?

2 Ansichten (letzte 30 Tage)
filename = 'myExample.xlsx';
sheet = 1;
header_xlRange = 'A:D';
[headers_nums, header_text] = xlsread(filename, sheet, header_xlRange);
loading a excel file in which I want to take only A, C not B and D, how can I improve?

Akzeptierte Antwort

Azzi Abdelmalek
Azzi Abdelmalek am 26 Mai 2013
headers_nums=headers_nums(:,[1 3])

Weitere Antworten (0)

Kategorien

Mehr zu Data Import from MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by