extracting data from a cell (in cell the data are images) and i need to store them seperately
1 次查看(过去 30 天)
显示 更早的评论
Poreddy ajaykumar reddy
2021-9-19
回答: Harikrishnan Balachandran Nair
2021-9-22
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
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/743019/image.jpeg)
0 个评论
采纳的回答
Image Analyst
2021-9-21
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 个评论
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!