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.

Categories

Find more on Loops and Conditional Statements in Help Center and File Exchange

Asked:

on 6 Jun 2017

Edited:

on 6 Jun 2017

Community Treasure Hunt

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

Start Hunting!