MATLAB Answers

Gal Lev
0

Undefined function or variable 'profile'.

Asked by Gal Lev
on 13 Dec 2018
Latest activity Answered by Philip Borghesani on 13 Dec 2018
Please hELp
Trying to execute profile with a standalone script compiled with Compiler version: 6.4 (R2017a), and getting the following error
profile off;
if isequal(profile_mode, 'on')
profile on;
end
->
Undefined function or variable; 'profile'.

  0 Comments

Sign in to comment.

2 Answers

Answer by per isakson
on 13 Dec 2018
Edited by per isakson
on 13 Dec 2018
 Accepted Answer

Documentation says:
MATLAB® Compiler™ supports the full MATLAB language and almost all toolboxes based on MATLAB except:
  • Most of the prebuilt graphical user interfaces included in MATLAB and its companion toolboxes.
I assume that profile belongs to the exceptions

  1 Comment

As suspected... :(. Many Thanks for the confirmation

Sign in to comment.


Answer by Philip Borghesani on 13 Dec 2018

Per is correct. The profiler is not currently supported by the compiler. However the primary reason for this is that there have been few if any requests for support and we are not sure what a valid use case would be. In addition only command access would be availible (profile('info') not the viewer). If you have a strong need for this and are willing to work it through I suggest contacting support.

  0 Comments

Sign in to comment.