How to change window type in Fsst function

조회 수: 3 (최근 30일)
Wendy Fernandez
Wendy Fernandez 2017년 7월 7일
답변: Walter Roberson 2017년 7월 9일
I would like to know how I can change the default window type in the fsst function to a Hamming window with window size 200.
Thank you
  댓글 수: 2
Walter Roberson
Walter Roberson 2017년 7월 8일
Please post a link to the fsst routine you are using. There does not appear to be a MATLAB routine by that name, and I do not see anything in the File Exchange by that name either.
Wendy Fernandez
Wendy Fernandez 2017년 7월 9일
편집: Walter Roberson 2017년 7월 9일
Hi Robert, this is the link to fsst documentation: https://www.mathworks.com/help/signal/ref/fsst.html
I am trying to use this function to remove the noise from a spectrogram output. Similar to the images attached. I found this example here: https://www.mathworks.com/help/signal/examples/practical-introduction-to-time-frequency-analysis.html
I want to change the window size because my sample is pretty big and my resolution is not good enough. In addition, the fsst function is taking an extremely long time to display the output even having a small window size.

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

답변 (1개)

Walter Roberson
Walter Roberson 2017년 7월 9일
In order to change the default, use
edit(which('fsst'))
and search down to the routine parseInputs, and on approximately line 210 change the call to kaiser to whatever you want the default window to be.
I do not recommend this.
I would recommend that you instead compute the window you want and pass it in at the window slot in the parameters. If you look at https://www.mathworks.com/help/signal/ref/fsst.html#inputarg_window you can see that you can pass in a vector, such as the result of calling hamming(200)

Community Treasure Hunt

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

Start Hunting!

Translated by