how to save/write images using for loop in one .mat file
2 次查看(过去 30 天)
显示 更早的评论
I want to save file path and roi of 10 images coming from a loop in one .mat file
4 个评论
KALYAN ACHARJYA
2020-6-2
Save the images in cell array (multiple_rows,one cloumn), later cell2mat and save?
回答(1 个)
Rik
2020-6-2
As Ameer suggests: you should share the code, so we can suggest how you can implement indexing.
The point is that your code currently looks like the top block, and should look like the bottom block.
for n=1:10
out=n+rand;%will overwrite
end
out=zeros(1,10);
for n=1:10
out(n)=n+rand;
end
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Computer Vision with Simulink 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!