필터 지우기
필터 지우기

ploting a signal which has different frequency

조회 수: 3 (최근 30일)
Faranak
Faranak 2013년 12월 3일
댓글: sixwwwwww 2013년 12월 3일
Hi,
I want to plot a signal which has different frequency,This is the exactly what I want:
I want to plot the heart beat of a person which his heart beat,after a couple of minutes exercising, start from 10 and decrease to 1 , What should I use for the code? Thanks

답변 (3개)

sixwwwwww
sixwwwwww 2013년 12월 3일
편집: sixwwwwww 2013년 12월 3일
Dear Faranak, do you need something like this:
x = 0:0.01:2 * pi;
count = 0;
for i = 5:-1:1
y = sin(i * x);
plot(x + count * 2 * pi, y), hold on
count = count + 1;
end

Image Analyst
Image Analyst 2013년 12월 3일
I assume you already have the signal somehow, such as from an ecg machine. So then why can't you just plot it with the plot() function? If you don't have the signal yet, then let us know how you're planning on getting it, such as you'd like to synthesize a fake one, or whatever.

Faranak
Faranak 2013년 12월 3일
Thank you for your answers. I want my signal to be a train of impulse signal,not a sin one.I do not have the signal,I just have the frequency.
  댓글 수: 1
sixwwwwww
sixwwwwww 2013년 12월 3일
can you show sample output what you actually need as output?

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

카테고리

Help CenterFile Exchange에서 Multirate Signal Processing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by