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 visualizaciones (últimos 30 días)
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 comentarios

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Resizing and Reshaping Matrices en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by