Variable is not fully defined on some execution paths.
古いコメントを表示
I have written a matlab code for dividing an image into smaller parts. While using the HDL coder, I am getting an error "Variable 'tcell2{1, 1}' is not fully defined on some execution paths".
%%croping the image and storing the values in a cell
t=1;
tcell2=cell(10,10);
for y=0:100:900
s=1;
for z=0:100:900
final=imcrop(pic2,[(z+1) (y+1) width height]);
tcell2{t,s}=final;
s=s+1;
end
t=t+1;
end
%%taking mean of the elements in a matrix and storing values in a cell
for i=1:1:10
for l=1:1:10
mtcell2{i,l}=mean2(tcell2{i,l});%% getting an error over here
end
end
2 件のコメント
KALYAN ACHARJYA
2019 年 7 月 17 日
編集済み: KALYAN ACHARJYA
2019 年 7 月 17 日
%%croping the image and storing the values in a cell and mean of each cell element
If this is the objective, then you can do it by more simpler way.
Poornima Asuti
2019 年 7 月 18 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Video Formats and Interfaces についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!