How to convert Infinite sine frequency to Hanning window?

1 visualizzazione (ultimi 30 giorni)
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!

Risposte (1)

Abderrahim. B
Abderrahim. B il 13 Lug 2022
Modificato: Abderrahim. B il 13 Lug 2022
I recommend you to use windowDesigner App and wvtool tool, will help you to understand windowing.
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")

Categorie

Scopri di più su Creating, Deleting, and Querying Graphics Objects in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by