I am attempting to plot many figures. I am having trouble passing a variable name into the print statement. I need to create jpgs for each plot with a unique filename so I can later add the plots into a Word doc. I have trouble in general when attemtping to pass a variable into a function like below…
fname = strcat({'foo'}, num2str(kk)); print -djpeg fname;fn = strcat({'foo'}, num2str(kk)) ;print( gcf, '-djpeg', fn )
Best Answer