MATLAB Answers

S

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

Asked by S
on 26 May 2013
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?

  0 Comments

Products

No products are associated with this question.

1 Answer

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

  0 Comments


Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply today