Signal Framing (Segmentation) with Matlab

Signal framing (segmentation) of a signal for feature extraction on the individual frames (segments).


Updated 29 Aug 2021

View License

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 by the user (e.g., for feature extraction purposes). The output of the function is:
- a matrix with the signal frames with time across the columns and indexes across the rows;
- 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:
[1] 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. (

Cite As

Hristo Zhivomirov (2023). Signal Framing (Segmentation) with Matlab (, MATLAB Central File Exchange. Retrieved .

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

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes

A new version of the code has been uploaded.


A new version of the code has been uploaded.