How to generate a report using workspace variables in an .exe?

2 ビュー (過去 30 日間)
Antoine
Antoine 2014 年 1 月 30 日
回答済み: Paul Kinnucan 2016 年 5 月 13 日
Hello,
I wrote a code to analyse some files and I would like to generate a report at the end with my results.
To create my report, I used the Matlab Report Generator. My report is calling some variables contained in my workspace with the following syntax :
%<myVariable>
When I run my code, everything goes well and the report is correctly generated. Perfect! However, if I compile my code, with the following command
mcc -m myCode.m
and that I run the .exe, the report is not able to use the variables contained in the workspace anymore.
Do you have any idea of what could cause my problem? I'm using the R2009a Matlab version.
Thank, Antoine
  2 件のコメント
Antoine
Antoine 2014 年 2 月 2 日
Any idea?
Walter Roberson
Walter Roberson 2014 年 2 月 2 日
Which workspace are they in? I have seen some information suggesting that the base workspace does not exist for compiled executables; I do not know if that is accurate.

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

回答 (1 件)

Paul Kinnucan
Paul Kinnucan 2016 年 5 月 13 日
Compiled executables do have a global work space. The Report Generator's computed property value feature, %<MATLAB EXPRESSION>, does work in compiled applications. We need more information to determine why your compiled application failed.

Community Treasure Hunt

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

Start Hunting!

Translated by