How can I trigger default save function?
1 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
采纳的回答
Steven Lord
2019-8-9
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.
0 个评论
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Environment and Settings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!