ColorBar outerposition property on Matlab 2015b

1 view (last 30 days)
Hello.
My script used to work on Matlab 2013a, but it stopped working after upgrading to Matlab 2015b.
I plot an image using the image command then I assign the colorbar object to object c (see below).
c=colorbar('peer',a,...
'location','EastOutside',...
'units', 'centimeters');
Then I try to get the outerposition of the colorbar:
cpos=get(c,'OuterPosition');
and Matlab throws this error:
Error using matlab.graphics.illustration.ColorBar/get
There is no OuterPosition property on the ColorBar class.
Does anyone know the direct alternative to the OuterPosition property in Matlab 2015b? Rewriting this code may take ages!

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!