![]() |
在MATLAB中一张一张地显示多个图形
我有20个数字可以像幻灯片一样连续显示。我可以在Matlab中使用Imshow吗?任何帮助将不胜感激。
[B]回答:[/B] 您可以使用[URL="http://www.mathworks.com/help/techdoc/ref/movie.html"]MOVIE依次[/URL]显示图/图像。为此,您创建人物,通过[URL="http://www.mathworks.com/help/techdoc/ref/getframe.html"]GETFRAME[/URL]捕获它们,然后可以调用movie 。请参阅getframe帮助中的此示例 Z = peaks; surf(Z) axis tight set(gca,'NextPlot','replacechildren'); for j = 1:20 surf(sin(2*pi*j/20)*Z,Z) F(j) = getframe; end movie(F,20) % Play the movie twenty times [url=https://stackoverflow.com/questions/5285476]更多&回答...[/url] |
所有时间均为北京时间。现在的时间是 09:15。 |
Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.