Can I run a function in for loop
    조회 수: 3 (최근 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.

댓글 수: 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에서 Loops and Conditional Statements에 대해 자세히 알아보기
			
	제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


