I was encounering an error message when trying to do this, hence my question. My plot is a combination of several isosurfaces and a background slice. I think the error was due to Matlab believing I was enforcing the colorbar onto the iso-surface part of my plot, as opposed to the slice. By simply plotting the slice first, it was fixed.
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.