XLSWRITE

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!

 Respuesta aceptada

Oleg Komarov
Oleg Komarov el 22 de Mzo. de 2012

0 votos

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

1 comentario

Aman
Aman el 23 de Mzo. de 2012
thanks a lot everyone!

Iniciar sesión para comentar.

Más respuestas (2)

Wayne King
Wayne King el 22 de Mzo. de 2012

0 votos

filename = input('Enter the file name:\n','s');
Geoff
Geoff el 22 de Mzo. de 2012

0 votos

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

Etiquetas

Preguntada:

el 22 de Mzo. de 2012

Community Treasure Hunt

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

Start Hunting!

Translated by