How to convert Infinite sine frequency to Hanning window?
조회 수: 1 (최근 30일)
이전 댓글 표시
Hello,
I am a complete Matlab novice and am trying to get the vibration results/values of a Hanning window to an infinite sine wave (s = Amplitude*sin(2*pi*frequency*time) can produce a finite wave. There are many examples of this online (in pictorial format) but I want to understand how it is done.
Any help would be grately appreciated!
댓글 수: 0
답변 (1개)
Abderrahim. B
2022년 7월 13일
편집: Abderrahim. B
2022년 7월 13일
Perhaps this below is also helpful:
Fs = 1000 ;
frequency = 20 ;
time = 0:1/Fs:2 ;
Amplitude = 2 ;
vib_sig = Amplitude*sin(2*pi*frequency*time) ;
figure
plot(time, vib_sig)
w_h = window(@hamming, length(vib_sig)) ;
figure
vig_sig_h = vib_sig.* transpose(w_h) ;
plot(time, vig_sig_h, "Color", "k")
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

