error in using for loop

3 views (last 30 days)
kash
kash on 19 Jan 2012
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

Answers (1)

Walter Roberson
Walter Roberson on 19 Jan 2012
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 Comments
Walter Roberson
Walter Roberson on 19 Jan 2012
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
kash on 19 Jan 2012
walter as per yourinstruction ,if my dataset is empty,ten other part of program gives output,only my first section is not working,and other two section works

Sign in to comment.

Categories

Find more on Loops and Conditional Statements in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!