MATLAB high CPU usage on idle

After opening the Matlab Help Browser, Matlab might use 100% of one CPU core at about 25% duty cycle. Even after closing just the Help Browser while keeping Matlab itself open, this problem may persist.

Workaround

This is a one-time persistent setting.

  1. Type in Matlab:

    com.mathworks.mlwidgets.html.HtmlComponentFactory.setDefaultType('HTMLRENDERER');
    
  2. restart Matlab

  3. Open and close Matlab Help Browser; you should see that the CPU is not hanging at 100% after closing the Help Browser.

However, this simpler Help Browser is not as graphically nice as the default Java Help Browser–clickable links won’t work in the help files.

Undo workaround

Revert back to the default Java Help Browser with this one-time persistent setting:

Type in Matlab:

com.mathworks.mlwidgets.html.HtmlComponentFactory.setDefaultType('HTMLPANEL');

then restart Matlab.