필터 지우기
필터 지우기

how to save/write images using for loop in one .mat file

조회 수: 1 (최근 30일)
richa golash
richa golash 2020년 6월 2일
댓글: richa golash 2020년 6월 4일
I want to save file path and roi of 10 images coming from a loop in one .mat file
  댓글 수: 4
Ameer Hamza
Ameer Hamza 2020년 6월 2일
Can you show the code?
KALYAN ACHARJYA
KALYAN ACHARJYA 2020년 6월 2일
Save the images in cell array (multiple_rows,one cloumn), later cell2mat and save?

댓글을 달려면 로그인하십시오.

답변 (1개)

Rik
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
  댓글 수: 6
richa golash
richa golash 2020년 6월 2일
Thanks i will try
richa golash
richa golash 2020년 6월 4일
I resolved this problem by using struct2table function. Thanks for suggesting encouraging solution

댓글을 달려면 로그인하십시오.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by