Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

how can i estimate the period of a signal exist in a loaded file?

조회 수: 1 (최근 30일)
amira ramadan
amira ramadan 2014년 5월 24일
마감: MATLAB Answer Bot 2021년 8월 20일
how can i estimate the period of a signal exist in a loaded file?
  댓글 수: 3
amira ramadan
amira ramadan 2014년 5월 24일
that's the file , required the period of the signals s1 and s2
Star Strider
Star Strider 2014년 5월 24일
What is the time base of each of your signals?
  • Sampling frequency (both s1 and s2)?
  • Signal length in seconds (both s1 and s2)?
It is not possible to calculate the period of either signal without this information.

답변 (1개)

Geoff Hayes
Geoff Hayes 2014년 5월 24일
The first thing that you can do, is to plot the signals:
load sig_period.mat
figure;
plot(s1);
figure;
plot(s2);
It will be clear from both figures that the signal repeats. For s1, the repeated pattern is 1 2 3 4 5 4, while for s2 the repeated pattern is 1 1 2 3. For each signal, you have provided 120 samples. What is the sampling rate? Is this one second worth of data? Two seconds? Denote the sampling frequency (i.e. the number of samples taken from the signal per second) by Fs (I'm assuming the same sampling frequency for each signal).
The frequency of s1 is f1 = Fs/6 Hertz, and the frequency of s2 is f2 = Fs/4 Hertz.
The period of any signal is the reciprocal of the frequency, T = 1/ f.

이 질문은 마감되었습니다.

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by