error in using for loop
显示 更早的评论
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
回答(1 个)
Walter Roberson
2012-1-19
0 个投票
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 个评论
kash
2012-1-19
kash
2012-1-19
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.
kash
2012-1-19
类别
在 帮助中心 和 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!