Display effects of sinus wave

Hi everybody,
I don't understand something and I am sure It will be easy for some of you. I try the following program:
time=0:1/8000:5;
f=400;
Voltage=sin(2*pi*f*t);
figure(300)
plot(Voltage,'.');
If I make a zoom, I find my sinus wave. The thing I don't understand is the form I get if I don't use the zoom. Can somebody explain me why I get this kind of form ?
Thank you !

댓글 수: 1

Image Analyst
Image Analyst 2013년 10월 9일
편집: Image Analyst 2013년 10월 9일
What do you mean by form? Why are you passing 300 into the figure() function?

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

답변 (1개)

sixwwwwww
sixwwwwww 2013년 10월 9일

0 개 추천

You can see the frequecy is very high. So you need to use some smaller value
time=0:1/8000:5;
f=2;
figure(300)
Voltage = sin(2*pi*f*time);
plot(time, Voltage, '.');
Hope it will help

댓글 수: 2

EyalPoid
EyalPoid 2013년 10월 9일
Hi, thank you for your answer.
Yes, but I want to know why I get this form.
sixwwwwww
sixwwwwww 2013년 10월 9일
You get this form because your data is very spreaded (as you can see the axis in output plot of ur code) but screen resolution is limited that's why you need to adjust the input parameters to make it visible within screen resolution. Hope it explains the reason

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

카테고리

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

태그

질문:

2013년 10월 9일

댓글:

2013년 10월 9일

Community Treasure Hunt

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

Start Hunting!

Translated by