Can I run a function in for loop
2 ビュー (過去 30 日間)
古いコメントを表示
I am currently working on a project under which I have to capture a image then process the imge to obtain some data the whole code is in function.Now I like to to know whether I can run that function 100 times to process 100 such images to obtain data.
Attaching the screenshot of matlab script.![FunForLoop.PNG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/198144/FunForLoop.png)
![FunForLoop.PNG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/198144/FunForLoop.png)
3 件のコメント
madhan ravi
2018 年 12 月 3 日
編集済み: madhan ravi
2018 年 12 月 3 日
No the function name would be ball_detection save it in a function file(with the name ball_detection -> function file has to be saved with the name of the function ) and just call it like I told you in my answer
回答 (1 件)
madhan ravi
2018 年 12 月 3 日
Just call the function inside the loop meaning remove the word function in the above photo you attached.
2 件のコメント
madhan ravi
2018 年 12 月 3 日
編集済み: madhan ravi
2018 年 12 月 3 日
Anytime :)
"but I need to verify it in real time on my project so I will run it real time."
you are asking or informing?
参考
カテゴリ
Help Center および File Exchange で Software Development Tools についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!