How do I access content of Simulink.ProfileData in R2015b

2 ビュー (過去 30 日間)
Marius Mueller
Marius Mueller 2020 年 3 月 9 日
Hi community,
I want to use the simulink profile option to evaluate the effect of different model settings on model update/compile and simulation speed. I run around 100 simulations to test different settings and I want to compare the results.
My problem is that i do not know how to access the content of Simulink.ProfileData objects via command line. Neither the documentation nor the class/metaclass information was of any help to me.
myModel = 'testModel';
set_param(myModel,'Profile','on');
sim(myModel);
save('myProfileResult.mat',[myModel,'ProfileData']);
I am aware that I can generate the full report with
load 'myProfileResult.mat'
slprofreport([myModel,'ProfileData']);
but what I want is to access the content of the ProfileData object.
Could anyone provide me with an idea on how to access e.g. the 'Total recorded time' that is displayed in the report?
Kind regards,
Marius

回答 (0 件)

カテゴリ

Help Center および File ExchangeSources についてさらに検索

製品


リリース

R2015b

Community Treasure Hunt

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

Start Hunting!

Translated by