I expect the following commands:
imagesc(rand(100),'Parent',h,[0 0.5])imagesc(rand(100),[0 0.5],'Parent',h)
to give the same result. However, the second version does not work and produces an error:
??? Error using ==> image Incorrect number of arguments specified Error in ==> imagesc at 40 hh = image(varargin{:},'CDataMapping','scaled');
Best Answer