How do I obtain profile information of matlab code written inside Matlab Function block.
6 ビュー (過去 30 日間)
古いコメントを表示
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
0 件のコメント
回答 (1 件)
Dinesh
2024 年 3 月 25 日
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
Here's the documentation link for profiling: https://www.mathworks.com/help/matlab/matlab_prog/profiling-for-improving-performance.html
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Reporting and Database Access についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!