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.

 采纳的回答

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

2 个评论

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

请先登录,再进行评论。

更多回答(0 个)

类别

在 帮助中心 和 File 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