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 件のコメント
kaavya subramani
kaavya subramani 2015 年 8 月 26 日
my last two lines of code is wrong,please give alternate solution

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeResizing and Reshaping Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by