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:
MATLAB Profiler

Subject: MATLAB Profiler

From: Elnaz

Date: 30 Oct, 2012 22:19:08

Message: 1 of 3

Dear all,

Using the profiler with CPU time, I'm getting different timing lengths every time I run the exact same code with everything fixed. Am I missing something?
My goal is to improve the speed of my code which is highly needed.

Elnaz

Subject: MATLAB Profiler

From: TideMan

Date: 31 Oct, 2012 00:31:52

Message: 2 of 3

On Wednesday, October 31, 2012 11:19:09 AM UTC+13, Elnaz wrote:
> Dear all,
>
>
>
> Using the profiler with CPU time, I'm getting different timing lengths every time I run the exact same code with everything fixed. Am I missing something?
>
> My goal is to improve the speed of my code which is highly needed.
>
>
>
> Elnaz

It's all those games you've got playing in the background. They're sucking up RAM and reducing the capacity of your m/c to do Matlab calculations.

Subject: MATLAB Profiler

From: Yair Altman

Date: 31 Oct, 2012 20:57:08

Message: 3 of 3

"Elnaz " <ebsadeghian@gmail.com> wrote in message <k6pjos$ud$1@newscl01ah.mathworks.com>...
> Dear all,
>
> Using the profiler with CPU time, I'm getting different timing lengths every time I run the exact same code with everything fixed. Am I missing something?
> My goal is to improve the speed of my code which is highly needed.
>
> Elnaz

For the past 4 years at least, the profiler has an undocumented bug that causes the CPU-time profiling to actually measure wall-clock timings.

See http://undocumentedmatlab.com/blog/buggy-profiler-option/

Yair Altman
http://UndocumentedMatlab.com
 

Tags for 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