How can I save a file in the directory where the user chooses the file location and file name?
2 次查看(过去 30 天)
显示 更早的评论
I want to create a save function to save .mat files with specific variables in the workplace. I'm aware that
save(filename, variables)
will save my variables within the program under a specified folder name. However I want the user to be able to save wherever they want, and to save with a name of their choice.
For example, in Microsoft Word, you can save your file wherever you want in your directory and choose it's name. I want to know how to do the same thing for my program.
.
If this isn't applicable, I would at least like to know how to get the file name they input themselves, and have a designated folder outside the program. I can't find any answers to this question :(
3 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 File Operations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!