error in using for loop
조회 수: 3 (최근 30일)
이전 댓글 표시
in my code below i had used 4 for loops,but i need one for loop,
i tried using one for lop ,but my values are not correct,i get [] , please help
댓글 수: 0
답변 (1개)
Walter Roberson
2012년 1월 19일
storedColorMap is undefined but potentially used.
It would be faster if you told us which section of that code produced the [] -- or is the [] only produced in your attempted single-loop version which you did not post?
댓글 수: 4
Walter Roberson
2012년 1월 19일
Either your dirlist is empty or your image files are all empty.
Use the debugger to check that you really are executing the loop, and to check the progress of the calculations.
참고 항목
카테고리
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!