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

2 vues (au cours des 30 derniers jours)
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?

Réponse acceptée

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

Plus de réponses (0)

Catégories

En savoir plus sur Data Import from MATLAB dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by