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

11 vues (au cours des 30 derniers jours)
Ismail Qeshta
Ismail Qeshta le 10 Nov 2017
Commenté : Ismail Qeshta le 13 Nov 2017
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
  4 commentaires
Ismail Qeshta
Ismail Qeshta le 13 Nov 2017
Thank you very much Stephen

Connectez-vous pour commenter.

Réponse acceptée

Dishant Arora
Dishant Arora le 10 Nov 2017
  1 commentaire
Ismail Qeshta
Ismail Qeshta le 11 Nov 2017
Thanks Dishant

Connectez-vous pour commenter.

Plus de réponses (0)


En savoir plus sur Text Data Preparation dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by