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 views (last 30 days)
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 Comments

Sign in to comment.

Answers (0)

Categories

Find more on Resizing and Reshaping Matrices in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!