Plotting single graphs per excel sheet

1 回表示 (過去 30 日間)
Veena Sanmugananthan
Veena Sanmugananthan 2019 年 10 月 14 日
回答済み: darova 2019 年 10 月 15 日
Hi all,
I'm trying to create a different figure for each excel sheet that my code runs through.
My code is able to plot one graph for one sheet, but doesn't plot anymore than that.
If someone could help me figure out what I'm missing that would be great!
files = dir(fullfile('D:\Thesis\Reports\Encoding\Encoding Trial Reports\Free viewing Reports\Run1', '*.xlsx'));
L = length(files);
for i=1:L
file=files(i).name;
data = xlsread(files(i).name);
x=data(:,1);
y=data(:,9);
plot(x,y)
hold off
end

回答 (1 件)

darova
darova 2019 年 10 月 15 日
Look HERE how to count sheets in excel

カテゴリ

Help Center および File ExchangeSpreadsheets についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by