hi, i need to save my for loop array result in cell array,i attached my code,please correct the mistake which i did
1 回表示 (過去 30 日間)
古いコメントを表示
kaavya subramani
2015 年 8 月 21 日
コメント済み: kaavya subramani
2015 年 8 月 22 日
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];
i=[];
for y=1:length(y)
gp=vision.Pyramid('PyramidLevel',3);
i{y}=step(gp,y);
end
3 件のコメント
採用された回答
Walter Roberson
2015 年 8 月 21 日
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};
ny = length(y);
i = cell(ny,1);
gp = vision.Pyramid('PyramidLevel',3);
for k = 1:ny
i{k} = step(gp, y{k});
end
その他の回答 (1 件)
Purushottama Rao
2015 年 8 月 21 日
OK. i have tried with cc as random generated matrix of size 192*192 I could able to generate the cell array of 1*384 with your code unmodified. Pls find the attached result
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!