Can Matlab Compiler package stand-alone apps that can read and write data to an Excel spreadsheet?
17 ビュー (過去 30 日間)
古いコメントを表示
I have created a program that involves reading and writing information to an Excel spreadsheet. I have created a stand-alone app using Matlab Compiler, but the program will not write or open the Excel spreadsheet. I am using writetable and xlsread.
2 件のコメント
Dennis
2018 年 8 月 2 日
Yes, this can work. Without more information it is hard to pinpoint the error. My first guess would be that the path to your files is incorrect.
回答 (1 件)
Harsh
2018 年 8 月 3 日
You can use MATLAB compiler to compile programs that read and write from an Excel. As Dennis mentioned, make sure the Excel exists and has the correct path available to the compiled program. This link maybe helpful to package the excel file with your code.
Also suggest using readtable instead of xlsread. As an additional option, you can create a log file that would give runtime information on the exact error message MATLAB is encountering. To do this use 'Additional runtime settings' on the Application Compiler GUI or use the -R option with mcc.
参考
カテゴリ
Help Center および File Exchange で MATLAB Compiler についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!