Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 1x7049 单元阵列。该数组的每个元素都是一个 96x96 矩阵。
现在,我想将这些 96x96 矩阵中的每一个保存为 jpg 文件,这样我将获得 7049 张图像。我怎样才能做到这一点?
使用循环
for ii = 1:numel(myCellArr) fileName = sprintf('image_%04d.jpg'); imwrite( myCellArr{ii}, fileName ); end