The present code is a Matlab function that provides a framing (segmentation) of a given signal x[n]. Further, the frames (segments) could be post-processed (e.g., for feature extraction). The output of the function is:
1) a matrix with the signal frames with time across the columns and indexes across the rows;
2) a time vector.
An example is given in order to clarify the usage of the function. For convenience, the input and output arguments are given in the beginning of the function.
The code is based on the theory described in:
 H. Zhivomirov. On the Development of STFT-analysis and ISTFT-synthesis Routines and their Practical Implementation. TEM Journal, ISSN: 2217-8309, DOI: 10.18421/TEM81-07, Vol. 8, No. 1, pp. 56-64, Feb. 2019. (http://www.temjournal.com/content/81/TEMJournalFebruary2019_56_64.pdf)
Hristo Zhivomirov (2021). Signal Framing (Segmentation) with Matlab (https://www.mathworks.com/matlabcentral/fileexchange/73006-signal-framing-segmentation-with-matlab), MATLAB Central File Exchange. Retrieved .
Inspired by: Short-Time Fourier Transform (STFT) with Matlab
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!