필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Why the FOR LOOP take a part of the data set?

조회 수: 1 (최근 30일)
reyadh Albarakat
reyadh Albarakat 2016년 10월 28일
마감: MATLAB Answer Bot 2021년 8월 20일
I created a for loop for the data set that include 748 images. but when I did run the out put only 40 images.
Please I need your help to solve this problem.
Thank you in advance
Here is the code
cd G:\marshals_iraque\bdados\INDEX\VNDWI\MOD09A1_HA;
F_read=dir('*.tif');
for i=1:length(F_read)
vndwi_cn{i}= F_read(i).name;
vndwi_cn{i} = imread(vndwi_cn{i});
vndwi_cn{i}(vndwi_cn{i}<0)=NaN;
vndwi_cn{i}(vndwi_cn{i}==0)=NaN;
vndwi_cn_Avg{i}=nanmean (vndwi_cn{i}(:));
end
  댓글 수: 3
reyadh Albarakat
reyadh Albarakat 2016년 10월 28일
F_read is 748
dpb
dpb 2016년 10월 28일
Doesn't look likely...show us the actual command and result from the command line that makes you think that is so...or, there must've been an error that aborted the loop prematurely; show us any other output including all error messages in context and in toto...

답변 (0개)

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by