Jan,
Thanks for your answer.
Actually, I am saving images in .bmp format as shown below.. Essentially for each iteration it saves image as S00001.bmp, S00002.bmp and so on...
for i = 1:1:100
%% save image to the folder
fname = fullfile(inputFolder, fname);
thisBaseFileName = sprintf('S%4.5d.bmp', i);
fullFileName = fullfile(outputFolder, thisBaseFileName);
saveas(gcf, fullFileName)
clf
end
And text should appear somewhere in the image like (x,y) = (10, -35) as shown in attached figure ..
text (10, -35, 'my text')