When I import excel data...

2 次查看(过去 30 天)
JIN-HWA JEONG
JIN-HWA JEONG 2016-5-2
This codes are possible.
----------------
a=xlsread('1')
b=xlsread('2')
c=xlsread('3')
----------------
When I used codes, in workspace
appeared numeric shape of a,b,c.
But when I try this code
----------------
xlsread('i')
for i = 1: 5
end
----------------
Error using xlsread (line 129) XLSREAD unable to open file 'i'. File 'i' not found.
Error in pleaseeeeee (line 1) xlsread('i')
What is wrong?

回答(1 个)

Azzi Abdelmalek
Azzi Abdelmalek 2016-5-2
编辑:Azzi Abdelmalek 2016-5-2
for k=1:3
a{k}=xlsread(sprintf('%d',k));
end
a{1}
a{2}
a{3}

类别

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