As part of the major update of the graphics system in release R2014b, the object returned by colorbar changed from being an axes to being its own type of object. The "axes-based" colorbar from release R2014a and before did not accept the Ticks property name as an input; the "colorbar-based" colorbar available starting in release R2014b does. Note that the online documentation is for the most recent release of our products, and so may contain functions or functionality not available in your release. I suspect you're using that documentation with your older release. I recommend instead that you review the documentation for the colorbar function included in your installation as the syntax that it describes will be compatible with your software release.
Best Answer