这是我在保存按扭对应的function 下面写的语句
function menu3_Callback(hObject, eventdata, handles)
% hObject handle to menu3 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
[filename,pathname]=uiputfile(...
{'*.fig','All MAT-Files(*.fig)';...
'*.*','All Files(*.*)'},...
'Save A File');
saveas(gcf,'filename','*.fig' )
end
======================================