Make movie from imagesc
2 次查看(过去 30 天)
显示 更早的评论
I have the following image:
t = 0:.1:10;
y4 = zeros(10,length(t));
x = zeros(size(t));
for k = 1:2:19999
f(k)=k;
x = x + sin(k*t)/k;
y4((k+1)/2,:) = x;
end
y5=x-sin(t);
img2=imagesc(y5+1);
colormap('gray') ;
I would like to generate a movie to have the function moving on the x axis. I have tried im2frame which yields this error:
Error using im2frame
Can only make movie frames from image matrices of type double or uint8
F(1) = im2frame(img2);
Any help would be greatly appreciated!
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Convert Image Type 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!