Clear Filters
Clear Filters

How to import data for multiple files in "for" loop?

7 views (last 30 days)
Hi, I would like to import data from multiple files using "for" loop. The files follow the seuquene of Data11, Data12, Data13, etc. I tried using the following command, but it is showing an error:
c = [1 2 3 4 5 6 7 8 9 10];
s = [1 2 3 4 5 6 7 8 9 10];
for i=1:10;
for j=1:10;
x= a(:,2);
y= -sum(b(:,2:11),2);
Can anyone please help me in fixing it, or let me know about the correct code.
Thank you. Regards, Ismail

Sign in to comment.

Accepted Answer

Dishant Arora
Dishant Arora on 10 Nov 2017

More Answers (0)


Find more on Data Import and Export in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!