MATLAB: How to save a figure file into a subfolder

saveas

Hi guys,
I want to save my .fig files in a subfolder of the current working folder. how would I accomplish this using this saveas syntax
*************************************************
saveas(figure(i), fullfile('Figure name'), 'fig');
*************************************************
Many Thanks in advance

Best Answer

Here goes:
saveas(figure(1),[pwd '/subFolderName/myFig.fig']);
Cheers!