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.

 채택된 답변

KSSV
KSSV 2017년 6월 24일
편집: KSSV 2017년 6월 24일

1 개 추천

f=0.1;
hold on
k=0:0.1:1/f ;
for i = 1:length(k)
plotv([real(exp(1i*2*pi*f*k(i))); imag(exp(1i*2*pi*f*k(i)))],'-')
M(i)=getframe(gcf);
end
movie(M,1,12);

댓글 수: 1

Hi @KSSV, if possible, could you help me to understand what did I do wrong please?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Matrix Indexing에 대해 자세히 알아보기

태그

질문:

2017년 6월 24일

댓글:

2017년 6월 24일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by