How do you create a filename and path in MATLAB for the xlswrite function?
조회 수: 11 (최근 30일)
이전 댓글 표시
In Windows 7, I would like have the user create a filename for writing an Excel file. Is there a MATLAB file-gui function for creating a file path?
댓글 수: 0
채택된 답변
TastyPastry
2015년 10월 22일
You can use inputdlg() to ask for a string, then append '.xlsx' to the end. If you want to have the user be able to save the file to a different directory, use uiputfile(). There's a good post here which details how to use uiputfile() and xlswrite() to save to a specific directory.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
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!