How to change window type in Fsst function

3 views (last 30 days)
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 Comments
Walter Roberson
Walter Roberson on 8 Jul 2017
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 on 9 Jul 2017
Edited: Walter Roberson on 9 Jul 2017
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.

Sign in to comment.

Answers (1)

Walter Roberson
Walter Roberson on 9 Jul 2017
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)

Categories

Find more on Time-Frequency Analysis 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!