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!