フィルターのクリア

Why are these MATLAB Functions Called?

1 回表示 (過去 30 日間)
Evans Harrigan
Evans Harrigan 2021 年 1 月 13 日
コメント済み: Evans Harrigan 2021 年 1 月 20 日
We use MATLAB as the implementation language for functional prototyping of both hardware and software. In the Profiler data from execution of a scientific application, there are entries for:
  • num2str
  • strcat
  • int2str
  • blanks
The above routines are called for each reference to other routines we wrote, in For loops. The problem: these routines consume a significant amount of Total time. Also, Self time for the individual routines is significant.
What is the function of these routines? Can you recommend options for reducing their impact on application performance? Thanks for your assistance

採用された回答

Walter Roberson
Walter Roberson 2021 年 1 月 13 日

num2str() and int2str() should be replaced with sprintf() unless you need the behavior of automatically formatting arrays.

I am not sure there is anything faster than blanks. Possibly the obscure char.empty()

  1 件のコメント
Evans Harrigan
Evans Harrigan 2021 年 1 月 20 日
Thanks for your advice. Since we need the capability of automatically formatting arrays in some segments of application, more analysis is in progress.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

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

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by