MATLAB standalone application that includes Excel data template

조회 수: 16 (최근 30일)
ChiPhi85
ChiPhi85 2018년 10월 26일
댓글: Image Analyst 2019년 1월 15일
I would like to include an Excel spreadsheet within my standalone application that has a lot of formatting applied and will simply be filled with data and saved to a local drive. If I include it as a 'required file' during compilation, MATLAB opens it when I load the program. Obviously I can prompt the user to select the file or I can save the file in a specific directory, but is there any way to do it by storing the xlsx file as part of the program?
  댓글 수: 3
ChiPhi85
ChiPhi85 2018년 10월 27일
Thanks for your response. I don't need the user to see the Excel file. The Excel file is just an empty template that I want to fill with data and then save to the users computer. It's just that it has nice formatting so they can just print it with all the data filled in.
Kevin Chng
Kevin Chng 2018년 10월 28일
For compilation, i'm still prefer save it as mat. file. if user want to print it, at that moment, in your program, you write your data to excel.

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

채택된 답변

Image Analyst
Image Analyst 2018년 10월 28일
Use the -a option in mcc to include a file in your executable.
  댓글 수: 7
Evan Bates
Evan Bates 2019년 1월 15일
Did this work for you? I want to do the same thing, however, can't get it to work.
Image Analyst
Image Analyst 2019년 1월 15일
Did you use the -a option, change MCR_CACHE_ROOT, or both?

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

추가 답변 (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