File Exchange

## Stockwell Transform (S-Transform)

version 1.1.0.0 (844 Bytes) by
The Stockwell Transform gives a full time-frequency or spatial-frequency decomposition of a signal

Updated 30 Jan 2015

This code computes the Stockwell transform (S-Transform) of a one dimensional series without for loop, thereby making it computationally fast and simple. S-Transform was proposed in 1996. A nice tutorial on S-Transform can be found here:
djj.ee.ntu.edu.tw/S_Transform.pdf‎

### Cite As

Baba Dash (2021). Stockwell Transform (S-Transform) (https://www.mathworks.com/matlabcentral/fileexchange/45848-stockwell-transform-s-transform), MATLAB Central File Exchange. Retrieved .

xiaoyan Wang

I've got a scalar number!

Mohit Atal

give error

Jesus Eiras

That gives an error: Matrix dimensions must agree (line 42)

Briana Phillips

My vector is a one-dimensional complex timeseries of u and v velocities based on the concept of a rotary spectra, as Stockwell has done recently in his paper inertial oscillations in surface winds. When I use your function there is no x and y labels so I don't know which is negative. Is there any way to turn the x and y labels on? Can this function work for a complex timeseries?

Guilhem Barruol

@Ayush : This code seems to output a result which is the conjugate of the one outputted from the original Code by Robert Glenn Stockwell http://www.codeforge.com/read/33451/st.m__html.

Hamdullah Livaoglu

BenL

may i know how do u plot the magnitude? i got a strange plot when using abs(ST)

hi Baba Dash.can you please provide email?i need to confirm few urgent things.Thank you.

Curtis

Works great once, but you may need to transpose the input. The result is a large matrix that can easily over-run you RAM. I had to decimate() my input.

The output is complex, so to get the magnitude plot in the picture you'll need to take the mag() or abs() of the result.

Curtis

gfjjjj bbbb

Hello
I want to know the parameters that affect the time-frequency resolution for S_transform.
thanks

Elsaeed Ali

fine

Mahmoud Ibrahim

Dear Mr

I want to draw the frequency spectrum of non stationary transient signal
Did S-transform can be effective in it?
thanks

marie vill

hello how can i extract satistatical parameteres from The ST matrix

rubana aafreen

why cant i find the code??

rubana aafreen

why cant i fond the code??

SAUMYA

I CAN NOT GET THE RESULT

Ayush

I don't get the same result as from the original Code by Robert Glenn Stockwell http://www.codeforge.com/read/33451/st.m__html please correct the code accordingly.

Ayal

no reference, and most importantly, no useful help or internal documentation.

Baba Dash

Praveen: The ST matrix is a matrix of complex numbers the magnitude and phase of which can be used as features. Other statistical parameters can also be considered depending on their necessity.

Praveen

What kind of features can be extracted after getting the S-transform Matrix?

q 368

Thank you

Mona

Thank you Baba Dash, useful neat code!

Tirupal Talari

good code
can u plz provide inverse of s-transform

Jan

Is there also a fast inverse S transform ?

Demetris

Demetris

Can this be extended to 2 dimensions?

Sree Lakshmi Deepak

How to use this code to simulate power signal generated by DFIG model in Simulink

##### MATLAB Release Compatibility
Created with R2013a
Compatible with any release
##### Platform Compatibility
Windows macOS Linux