Hi sir,here i attached one code,i need to save for loop for variable 'idx' answers in one array,then i need to save 'matrix of idx' in another array.please correct my code sir
3 ビュー (過去 30 日間)
古いコメントを表示
for p=1:num of frames
i1 = cc(1:96,1:96);
i2 = cc(1:96,97:192);
i3 = cc(97:192,1:96);
i4 = cc(97:192,97:192);
y = {i1, i2, i3, i4};
for i=1:length(y)
ui = edge(y{i},'canny');
count(i) = numel(find(ui(:)==1));
clear ui
end
idx=find(count==max(count));
idx(1,p)=idx;
yu(1,p)=y{idx};
end
4 件のコメント
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Resizing and Reshaping Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!