MATLAB standalone application that includes Excel data template

4 ビュー (過去 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 Center および File ExchangeSpreadsheets についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by