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

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -