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!