I have data in multiple excel sheets. How do I import only certain columns only and plot the data.

I have multiple excel files in a folder. I would like to import only certain columns from those files and plot those columns in one single graph.

 Accepted Answer

range='B:C' % column B and C
xlsread('file.xlsx',range)

2 Comments

I was looking for a way to pull column B and C from multiple files and plotting on one single graph
A = zeros(1000,2); A(:,1) = xlsread('file1.xlsx',range); A(:,2) = xlsread('file2.xlsx',range); Hope it is useful

Sign in to comment.

More Answers (0)

Asked:

on 8 Apr 2016

Commented:

on 12 Apr 2016

Community Treasure Hunt

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

Start Hunting!