フィルターのクリア

How to use flops in R2021a?

21 ビュー (過去 30 日間)
Bayro97
Bayro97 2021 年 4 月 25 日
回答済み: Philip Borghesani 2021 年 4 月 25 日
I just want to measure flops in a programme, e.g.
flops(0)
W = zeros(k,n);
flops
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.

回答 (2 件)

Walter Roberson
Walter Roberson 2021 年 4 月 25 日
flops() was removed from MATLAB 20 years ago.
http://galton.uchicago.edu/~lekheng/courses/309f14/flops/
https://www.mathworks.com/matlabcentral/answers/51687-how-to-measure-flops-of-a-matlab-function
https://www.mathworks.com/matlabcentral/answers/5703-how-many-flops-floating-point-operations-needs-to-be-done-in-a-matriix-inverse#answer_7991

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

カテゴリ

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

製品

Community Treasure Hunt

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

Start Hunting!

Translated by