Floating Points operations for simulink model

5 Ansichten (letzte 30 Tage)
Nrukesari S H
Nrukesari S H am 3 Jan. 2024
Beantwortet: Sufiyan am 15 Jan. 2024
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?

Antworten (1)

Sufiyan
Sufiyan am 15 Jan. 2024
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!

Kategorien

Mehr zu Simulink finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by