use uiputfile instead. Credit to Jan.
[filename, filepath] = uiputfile('*.mat', 'Save the project file:');
FileName = fullfile(filepath, filename);
save(FileName, 'yourVariable', '-v7.3');
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!