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

2 visualizaciones (últimos 30 días)
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?

Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 26 de Mayo de 2013
headers_nums=headers_nums(:,[1 3])

Más respuestas (0)

Categorías

Más información sobre Data Import from MATLAB en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by