Floating Points operations for simulink model

6 次查看(过去 30 天)
I'm trying to calculate the floating point operatins required for a simulink model this is complex model which cannot be done with some simple counting of basic operations.
I was trying to use socModelAnalyzer(), however it fails during the build. Is there any better way or tool to calculate the number of floating point operations required for the simulink model?

回答(1 个)

Sufiyan
Sufiyan 2024-1-15
Hi Nrukesari,
I understand that you want to calculate the floating point operations for a simulink model. But inspecific MATLAB and Simulink do not calculate the number of floating point operations.
You can definitely refer to the program available in the file exchange Counting the Floating Point Operations (FLOPS) - File Exchange - MATLAB Central (mathworks.com). This program counts FLOPS (Floating point operations) by scanning and parsing through each line of the MATLAB code.
You can also refer to the below MATLAB Ans for more information.
Hope it helps!

类别

Help CenterFile Exchange 中查找有关 Modeling 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by