XLSWRITE

11 次查看(过去 30 天)
Aman
Aman 2012-3-22
How can I prompt the user to give a new filename so that when I want to use XLSwrite it can use that specified filename?
Appreicate the help!

采纳的回答

Oleg Komarov
Oleg Komarov 2012-3-22
name = inputdlg('Name excel file as: ','Name excel',1);

更多回答(2 个)

Wayne King
Wayne King 2012-3-22
filename = input('Enter the file name:\n','s');

Geoff
Geoff 2012-3-22
If you prefer a GUI interface, do this:
[filename, pathname] = uiputfile( ...
{'*.xls','Excel spreadsheet (*.xls)'; '*.*', 'All files (*.*)'}, ...
'Save spreadsheet as' );

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by