Clear Filters
Clear Filters

When I import excel data...

1 view (last 30 days)
JIN-HWA JEONG
JIN-HWA JEONG on 2 May 2016
Edited: Azzi Abdelmalek on 2 May 2016
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?

Answers (1)

Azzi Abdelmalek
Azzi Abdelmalek on 2 May 2016
Edited: Azzi Abdelmalek on 2 May 2016
for k=1:3
a{k}=xlsread(sprintf('%d',k));
end
a{1}
a{2}
a{3}

Community Treasure Hunt

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

Start Hunting!