export excel from Matlab compiler

7 ビュー (過去 30 日間)
Helena Fortuny Castellano
Helena Fortuny Castellano 2023 年 12 月 1 日
コメント済み: Walter Roberson 2023 年 12 月 1 日
Hello!
In the main function of Matlab I was exporting an excel file like this:
I am using right now the matlab Compiler to cretae an exe file of my program, but I would like to export the excel file again. Should I change the code or is it the same anyway?
Than you very much!

回答 (1 件)

Voss
Voss 2023 年 12 月 1 日
The code looks like it will work the same in a compiled executable as it does in (uncompiled) MATLAB.
The difference is that the working directory may be different, and that's where your xlsx file will be written to.
Rather than hard-coding the xlsx file name in your code, you may want to use uiputfile to allow the user to select the file name and location to write to.
  1 件のコメント
Walter Roberson
Walter Roberson 2023 年 12 月 1 日
writetable() does not have an "extended capabilities" documentation section, implying that it is possible that you might not be able to compile it. On the other hand it does not appear on the list https://www.mathworks.com/help/compiler/unsupported-functions.html so maybe it can be compiled... I don't know.

サインインしてコメントする。

カテゴリ

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