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
조회 수: 4 (최근 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!