필터 지우기
필터 지우기

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 CenterFile Exchange에서 Graphics Performance에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by