Effacer les filtres
Effacer les filtres

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

2 vues (au cours des 30 derniers jours)
richa golash
richa golash le 2 Juin 2020
Commenté : richa golash le 4 Juin 2020
I want to save file path and roi of 10 images coming from a loop in one .mat file
  4 commentaires
Ameer Hamza
Ameer Hamza le 2 Juin 2020
Can you show the code?
KALYAN ACHARJYA
KALYAN ACHARJYA le 2 Juin 2020
Save the images in cell array (multiple_rows,one cloumn), later cell2mat and save?

Connectez-vous pour commenter.

Réponses (1)

Rik
Rik le 2 Juin 2020
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 commentaires
richa golash
richa golash le 2 Juin 2020
Thanks i will try
richa golash
richa golash le 4 Juin 2020
I resolved this problem by using struct2table function. Thanks for suggesting encouraging solution

Connectez-vous pour commenter.

Catégories

En savoir plus sur Computer Vision with Simulink dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by