How to save filenames
Show older comments
Hello friends,
I want to save files with dynamic name so I wrote the code:
for n=1:Ne
[r,c] = find(L==n);
n1=imagen(min(r):max(r),min(c):max(c));
imshow(~n1);
imwrite(~n1, n, 'png');
But the file is not saved, is there any mistake in the code? Please guide.
Accepted Answer
More Answers (1)
Azzi Abdelmalek
on 2 Nov 2013
Edited: Azzi Abdelmalek
on 2 Nov 2013
imwrite(~n1, n, 'png');
Will not save any file, n is not a valid file name.
What does ~n1 represent?
Categories
Find more on Image Data in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!