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' );

카테고리

태그

질문:

2012년 3월 22일

Community Treasure Hunt

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

Start Hunting!

Translated by