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

조회 수: 2 (최근 30일)
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?

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2013년 5월 26일
headers_nums=headers_nums(:,[1 3])

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Import from MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by