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.
回答(1 个)
类别
在 帮助中心 和 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!