image - Tell imagesc in MATLAB to use specific figure -
i getting more ...slightly flustered... @ trying should otherwise very, simple task.
i want use particular figure, say, figure(3), doing imagesc. in beginning of code, this:
f3 = figure(3); a3 = gca; then, matrix data, of arbitrary size. got data of size 231 x 322. now, want tell matlab, perform imagesc(data), on figure(3).
how do that?? imagesc doesnt take figure or axes handles, , becoming very, frustrating... thanks!
imagesc takes 'parent' parameter. indirectly documented via image function.
for example:
imdata = imread('ngc6543a.jpg'); f = figure; a1 = subplot(211); a2 = subplot(212); image(imdata,'parent',a1); imagesc(imdata,'parent',a2);
Comments
Post a Comment