Clear Filters
Clear Filters

MATLAB standalone application that includes Excel data template

12 views (last 30 days)
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 Comments
ChiPhi85
ChiPhi85 on 27 Oct 2018
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 on 28 Oct 2018
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.

Sign in to comment.

Accepted Answer

Image Analyst
Image Analyst on 28 Oct 2018
Use the -a option in mcc to include a file in your executable.
  7 Comments
Evan Bates
Evan Bates on 15 Jan 2019
Did this work for you? I want to do the same thing, however, can't get it to work.

Sign in to comment.

More Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!