필터 지우기
필터 지우기

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일)
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
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
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

카테고리

Help CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by