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
figuresurf(peaks)colorbar
produces the following error
Error using parulaToo many input arguments.Error in matlab.graphics.illustration.ColorBarError 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