Filter löschen
Filter löschen

XLSWRITE

6 Ansichten (letzte 30 Tage)
Aman
Aman am 22 Mär. 2012
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!

Akzeptierte Antwort

Oleg Komarov
Oleg Komarov am 22 Mär. 2012
name = inputdlg('Name excel file as: ','Name excel',1);
  1 Kommentar
Aman
Aman am 23 Mär. 2012
thanks a lot everyone!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (2)

Wayne King
Wayne King am 22 Mär. 2012
filename = input('Enter the file name:\n','s');

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

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by