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
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
kash 2012 年 1 月 19 日
my first loop is producing [],i.e mean,std dev,variance
kash
kash 2012 年 1 月 19 日
my code where i used one for loop
http://www.sendspace.com/file/9v0uhc
Walter Roberson
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
kash 2012 年 1 月 19 日
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

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeLoops and Conditional Statements についてさらに検索

タグ

質問済み:

2012 年 1 月 19 日

Community Treasure Hunt

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

Start Hunting!

Translated by