Hi,
Tried as follows, bur it's not saving any images
folder = 'D:\CH\new\';
for f = 1:1:2
if (f>=1) && (f<=9)
fname_strt = 'B0000' ;
elseif (f>=10) && (f<=99)
fname_strt='B000';
elseif (f>=100) && (f<=999)
fname_strt='B00';
else
fname_strt='B0';
end
fname_end = num2str(f);
fname = strcat(fname_strt,fname_end,'.im7');
I=loadvec(fname);
x=(I.x);
y=(I.y);
h = figure (2);
G= imagesc(x,y,(I.w'));
ax=gca;
%G.AlphaData = 0.9;
colormap(bone);
set(gca, 'YDir','normal')
axis equal;
thisBaseFileName = sprintf('S%4.5d.png', f);
fullFileName = fullfile(thisBaseFileName);
fprintf('Saving %s\n', fullFileName);
%clf
%DISP off;
end