How do you create a filename and path in MATLAB for the xlswrite function?
8 次查看(过去 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!