How to use flops in R2021a?

56 visualizzazioni (ultimi 30 giorni)
Bayro97 il 25 Apr 2021
Risposto: Philip Borghesani il 25 Apr 2021
I just want to measure flops in a programme, e.g.
W = zeros(k,n);
But I get the error message "Unrecognized function or variable 'flops'." And I don't understand this. "flops" is a normal function defined by default in Matlab. I use Matlab R2021a.

Risposte (2)

Walter Roberson
Walter Roberson il 25 Apr 2021
flops() was removed from MATLAB 20 years ago.

Philip Borghesani
Philip Borghesani il 25 Apr 2021
The flops function was removed from MATLAB in version 6.0 in 2000. There are some user contributed replacements but they all have limitations.


Scopri di più su Entering Commands in Help Center e File Exchange


Community Treasure Hunt

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

Start Hunting!

Translated by