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

2 views (last 30 days)
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?

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 26 May 2013
headers_nums=headers_nums(:,[1 3])

More Answers (0)

Categories

Find more on Data Import from MATLAB 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!