How do I access content of Simulink.ProfileData in R2015b

1 view (last 30 days)
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

Answers (0)

Products


Release

R2015b

Community Treasure Hunt

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

Start Hunting!