Why does an IF statement take longer to run in MATLAB 7.0 (R14) than in previous versions?

1 view (last 30 days)
I run code that was developed in MATLAB 6.5 (R13). The performance is slower in MATLAB 7.0 (R14). In particular, one IF statement is significantly slower.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
There is a bug in MATLAB 7.0 (R14) that affects the way the JIT Accelerator determines when a function has been compiled.
To work around this issue, add code to disable the JIT Accelerator for the portion of the code affected by this issue. For example:
feature('accel', 'off');
% Statement which causes recompilation of code
feature('accel', 'on');

More Answers (0)

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!