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 日

0 投票

name = inputdlg('Name excel file as: ','Name excel',1);

1 件のコメント

Aman
Aman 2012 年 3 月 23 日
thanks a lot everyone!

サインインしてコメントする。

その他の回答 (2 件)

Wayne King
Wayne King 2012 年 3 月 22 日

0 投票

filename = input('Enter the file name:\n','s');
Geoff
Geoff 2012 年 3 月 22 日

0 投票

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