MATLAB: Colorbar error “Too many input arguments.” in matlab 2015b

colorbardriversfigure rendererfigure; plot;graphicsMATLAB

I am experiencing a problem with the colorbar function on matlab 2015b student version. Note this is a brand new installation on a new laptop running Windows 10 64bit (ie. I have no new functions that override the default ones as another question suggests). I have updated to my latest graphics drivers to no avail.
So the following code
figure
surf(peaks)
colorbar
produces the following error
Error using parula
Too many input arguments.
Error in matlab.graphics.illustration.ColorBar
Error in colorbar (line 174)
cbar = matlab.graphics.illustration.ColorBar;
Changing the colormap makes no difference. Changing the renderer to painters as well as using the software and hardware modes in opengl makes no difference. Also just typing
matlab.graphics.illustration.ColorBar
produces the same error (minus the bottom two lines). And for incase anyone wants
opengl info
outputs
Version: '4.5.0 NVIDIA 361.75'
Vendor: 'NVIDIA Corporation'
Renderer: 'GeForce 920M/PCIe/SSE2'
RendererDriverVersion: '10.18.13.6175'
RendererDriverReleaseDate: '22-Jan-2016'
MaxTextureSize: 16384
Visual: 'Visual 0x07, (RGBA 32 bits (8 8 8 8), Z depth 16 bits, Hardware acceleration, Double buffer, Antialias 8 samp…'
Software: 'false'
HardwareSupportLevel: 'basic'
SupportsGraphicsSmoothing: 1
SupportsDepthPeelTransparency: 0
SupportsAlignVertexCenters: 0
Extensions: {323x1 cell}
MaxFrameBufferSize: 16384

Best Answer

One thing I would try as an experiment would be
set(groot, 'DefaultFigureColormap', jet)
and see whether the problem is solved or if the problem transfers to 'jet'.
You could use
dbstop if error
to get it to stop when it fails the call to parula and see how it is trying to invoke it. There should be either 0 or 1 argument. If there is 0 or 1 argument already, then use
which -all parula
to see where it is getting the parula function... just in case somehow you are picking up (for example this version)