extracting data from a cell (in cell the data are images) and i need to store them seperately
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Poreddy ajaykumar reddy
le 19 Sep 2021
Réponse apportée : Harikrishnan Balachandran Nair
le 22 Sep 2021
I need to extract the all the contents in a cell and i need to all the contents in a cell
first row in one folder
second row in oone folder
third row in one folder
fourth row in one folder
0 commentaires
Réponse acceptée
Image Analyst
le 21 Sep 2021
You can do something like this:
[rows, columns] = size(EO)
for row = 1 : rows
folder = sprintf('Row %d', row);
if ~isfolder(folder)
mkdir(folder);
end
for col = 1 : columns
baseFileName = sprintf('Row %d, Column %d.png', row, col);
fullFileName = fullfile(folder, baseFileName);
imwrite(EO{row, col}, fullFileName);
end
end
Adapt as needed.
0 commentaires
Plus de réponses (1)
Voir également
Catégories
En savoir plus sur Image Processing Toolbox dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!