Matlab 2D Movie animation
Show older comments
Hi, this is my code:
for strIndex = 1:length(str)
%Reference to a cell
name = str{strIndex};
imagesc(eval(name));
%Using jet colormap and colorbar
colormap(jet);
colorbar;
axis image;
axis off;
newStr = split(name, '_');
title(newStr{3});
drawnow;
%Save each frame into M
M(strIndex) = getframe(gcf);
end
when I try to run the for loop I keep getting an error that says
"Error in heatmap_display (line 28)
imagesc(eval(name));"
what does this mean and what can I do about it?
Accepted Answer
More Answers (0)
Categories
Find more on Animation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!