Got Questions? Get Answers.
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Question about Profile Summary (Timer)

Subject: Question about Profile Summary (Timer)

From: Liana

Date: 25 Oct, 2011 19:34:14

Message: 1 of 1

Hello,

I'm using Profile Summary to estimate the run-time of particular functions in my MATLAB code, i.e.

profile -timer 'real'
profile on
function1
function2
profile viewer
p = profile('info');
profsave(p,'profile_results');

The Total Time column provides me the run-time of all functions and sub-functions. However, each time I run the code I get very different results (different run-time). Is there any built-in way to accurately estimate the run-time of a function?

Thanks.

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us