How to write a table to a user specified excel file name/directory?

조회 수: 1 (최근 30일)
Ibro Tutic
Ibro Tutic 2016년 4월 5일
댓글: Ibro Tutic 2016년 4월 5일
How would I go about creating a program that writes some arbitrary table, A, to a user specified Excel file? I tried using different UI commands, but I can't seem to get them to work. Essentially what I need is to allow a user to choose where the excel file is written and what the name of the file is.

채택된 답변

Robert
Robert 2016년 4월 5일
I believe you want the function uiputfile. It will open a dialog in which the user can select a path and name for a new file. You could use the returned values with writetable to save your data to the new Excel file.
  댓글 수: 1
Ibro Tutic
Ibro Tutic 2016년 4월 5일
It seems I was using that command wrong, I think I got it figured out, thanks.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by