save images produced in for loop in a .mat file
1 回表示 (過去 30 日間)
古いコメントを表示
I want to do the following :
In the following for loops I want to save the produced image imageiD(i).reg(j) in a .mat file
It is important that the images are ordered according to the indexes i and j in the loop so I can easily find them and use them later.
How can I do this ?
here are the for-loops :
for i = 1:K1
for j = 1:K2
imageiD(i).reg(j) = registerImage(Moving,Fixed);
end
end
0 件のコメント
回答 (1 件)
Sulaymon Eshkabilov
2021 年 6 月 8 日
Here is the completed code:
for i = 1:K1
for j = 1:K2
imageiD(i).reg(j) = registerImage(Moving,Fixed);
FN= strcat(['DATA' num2str(i)], '.mat');
save(FN, 'imageD') % Saved mat files will be DATA1.mat, DATA2.mat, ...
end
end
2 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!