extracting data from a cell (in cell the data are images) and i need to store them seperately
2 ビュー (過去 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
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!