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.

类别

帮助中心File Exchange 中查找有关 Loops and Conditional Statements 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by