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

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

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

Products

Community Treasure Hunt

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

Start Hunting!