You mean you want to set the filename yourself? You can use uiputfile for that.
[filename dirname] = uiputfile; %set file name and location
fullname = fullfile(dirname,filename); %make full file name
print('djpg100',fullname) %save plot as fullname
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!