I am dealing with a 3D double which I want to visualize slice by slice.
To do that, I tried plotting a heatmap and then adding a slider to select the index for the third dimension.
However, I get the following error:
Error using uislider (line XX) HeatmapChart cannot be a parent.
A minimal example to reproduce my problem:
% Generate dummy 3d array
img = ones(5,4,3);
for ii=1:size(img,3)
img(:,:,ii)=ii;
end
% Try plotting heatmap with slider
h = heatmap(img(:,:,1));
uislider(h)
Is there actually a way/workaround to use a slider on a heatmap? Thanks!