- Most of the prebuilt graphical user interfaces included in MATLAB and its companion toolboxes.
Undefined function or variable 'profile'.
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Gal Lev
am 13 Dez. 2018
Bearbeitet: Andreas Urbán
am 22 Feb. 2022
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 Kommentare
Akzeptierte Antwort
per isakson
am 13 Dez. 2018
Bearbeitet: per isakson
am 13 Dez. 2018
Documentation says:
MATLAB® Compiler™ supports the full MATLAB language and almost all toolboxes based on MATLAB except:
I assume that profile belongs to the exceptions
2 Kommentare
Andreas Urbán
am 22 Feb. 2022
Bearbeitet: Andreas Urbán
am 22 Feb. 2022
Seems like ismcc() can be used for a sort of conditional compilation. Inspired by Test if code is running during compilation process (using mcc) - MATLAB ismcc - MathWorks Nordic:
if ~(ismcc || isdeployed)
profile off;
if isequal(profile_mode, 'on')
profile on;
end
end
Weitere Antworten (1)
Philip Borghesani
am 13 Dez. 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 Kommentare
Siehe auch
Kategorien
Mehr zu MATLAB Compiler finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!