matlab fit a HeatMap into a subplot -


i tried fit heatmap subplot of plot. seems not compatible. every time using heatmap function, seems open heatmap 'canvas'. if save result of heatmap object , use plot or view put figure, open new figure window rather plot on existing one, hold on; command. there way make heatmap 1 of subplots?

a heatmap example code:

y = [1,2,3,4;5,6,7,8;4,3,2,1;8,7,6,5]; obj = heatmap(y,'symmetric','false','colormap','jet'); %this generate heatmap canvas plot(heatmap); %this display or render heatmap object figure window 

it seems should use imagesc rather heatmap function imagesc more compatible. using imagesc plot matrix, can set heatmap subplot.


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -