How to convert Infinite sine frequency to Hanning window?
1 view (last 30 days)
Show older comments
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 Comments
Answers (1)
Abderrahim. B
on 13 Jul 2022
Edited: Abderrahim. B
on 13 Jul 2022
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 Comments
See Also
Categories
Find more on Creating, Deleting, and Querying Graphics Objects in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
