如何用matlab给RGB图像添加colorbar代码如下: axes(handles.axes1); surf(peaks(30)); colorbar 或者直接拖一个axes到面板上去,没必要再去建一个坐标轴。