Using for loop to iterate a function

Hello,
I have a funciton which I created and want to evaluate that function using a for loop in order to get values of 10 different .txt files.
I tried using eval but didn't help. I'm looking for something that would help me call: "my_function(file1.txt)" for each txt file and get their data. Each file contains a matrix, so I thought about also creating a structure to record the data, but that's another question, I think.
Let me know if there's anything I could add if it's not clear enough. Thanks in advance.

Categorías

Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.

Preguntada:

el 6 de Jun. de 2017

Editada:

el 6 de Jun. de 2017

Community Treasure Hunt

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

Start Hunting!

Translated by