How do I obtain profile information of matlab code written inside Matlab Function block.

I have Simulink library(model) where we are using the Matlab Function block. When I perform the Simulink profile of my model, the Simulink Profile Report does not provide profile information of the matlab code present in Matlab Function block.
How do I obtain profile information of matlab code written inside Matlab Function block?
Kindly help here. Thanking you in advance.
Regards
Dileep

Réponses (1)

Hi Dileep,
You can use MATLAB profiler with Simulink in this case. Before running the Simulink model, use the following command in MATLAB to enable the profiler:
>> profile on
Now, you can run the simulink model as you normally would:
>> sim('your_model_name')
After the simulation completes, you can view the results using the command:
profile viewer

Catégories

En savoir plus sur Simulink Coder dans Centre d'aide et File Exchange

Produits

Version

R2017b

Question posée :

le 24 Mar 2024

Réponse apportée :

le 25 Mar 2024

Community Treasure Hunt

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

Start Hunting!

Translated by