Hi,
I would like to save each file in a loop using a prefix (in this case, "blur_") before the name of the original file. This is the code I have so far
for i = 1:N blur{i} = imgaussfilt(imdata{i},10) imshow(blur{1}) imwrite(blur{i},sprintf('blurred_circle_%d.png',i))end
using this code I am able to define a prefix (blurred_circle_) and then to give a number to each file and save them. the point is that I need my output to be like 'blurred_(original filename).png'. How can I do that?
thanks A
Best Answer