필터 지우기
필터 지우기

saving matrices with different cell sizes

조회 수: 1 (최근 30일)
Lucrezia Cester
Lucrezia Cester 2020년 2월 25일
편집: Lucrezia Cester 2020년 2월 25일
Hello,
I am running a for loop whose output is a matrix of different size at each iteration
for c =1:1001
speckle_changes_size(c) = imresize(first_speckle,y(1,c));
end
where the size of the output matrix is given by the respective y(1,c) value.
How can I save the results of this loop?
hey nevermind I found a way
cnew = cell(1001,1);
for iter = 1:1001
cnew{iter}=imresize(first_speckle,y(1,c));
end

답변 (0개)

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by