saving matrices with different cell sizes
    2 次查看(过去 30 天)
  
       显示 更早的评论
    
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 个评论
回答(0 个)
另请参阅
类别
				在 Help Center 和 File Exchange 中查找有关 Loops and Conditional Statements 的更多信息
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
