I would like to bind button's callback to default save function, any advices? That means it pops a window for the user. not command save function.

 채택된 답변

Steven Lord
Steven Lord 2019년 8월 9일

0 개 추천

If by "default save function" you mean the save built-in function, I'm confused by your later statement that "it pops a window for the user" since the save function does not show any window.
I suspect you want to bring up a dialog allowing the user to specify the file and directory in which to save the data then call save to save data in that location. In that case the uiputfile function may be of use to you. [As the Note on its documentation page states, uiputfile does not actually save the data, it just gives you a filename you can pass into save.]
If that's not what you're trying to do, please clarify with a bit more detail of what your end goal is.

추가 답변 (1개)

yingmu zhaoyang
yingmu zhaoyang 2019년 8월 12일

0 개 추천

Thanks a lot, Steven! I found the answer yesterday. Just as you say use both uiputfile and save function!

카테고리

도움말 센터File Exchange에서 Environment and Settings에 대해 자세히 알아보기

태그

질문:

2019년 8월 9일

답변:

2019년 8월 12일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by