M(i)=getframe(gcf) in for loop - Wrong result
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Gennaro Arguzzi
am 24 Jun. 2017
Kommentiert: Gennaro Arguzzi
am 24 Jun. 2017
Hi everyone. When I run the following code:
f=0.1;
hold on
for k=[0:0.1:1/f]
plotv([real(exp(i*2*pi*f*k)); imag(exp(i*2*pi*f*k))],'-')
x=floor(k*10+1);
M(x)=getframe(gcf);
end
movie(M,1,12);
in the movie there is only a part of circle. Why? I'd like to view complete circle as well as it happens with the only plotv statement.
Thank you very much.
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!