Skip to content


Switch branches/tags


Cerebral Signal's Instantaneous Parameters (Phase, Frequency & Envelope) Estimation & Analysis MATLAB Toolbox

This document (link provided above) is meant to help individuals use the "Cerebral Signal Phase Analysis" toolbox which implements different methods for estimating the instantaneous phase and frequency of a signal and calculating some related popular quantities. The latest version of toolbox documentation can be downloaded directly at the address:

The toolbox – which is distributed under the terms of the GNU GENERAL PUBLIC LICENSE as a set of MATLAB routines – can be downloaded at the address:

The purpose of this toolbox is to calculate the instantaneous phase and frequency sequences of cerebral signals (EEG, MEG, etc.) and some related popular features and quantities in brain studies and Neuroscience such as Phase Shift, Phase Resetting, Phase Locking Value (PLV), Phase Difference and more, to help researchers in these fields.

License - No Warranty

This program is free software; you can redistribute it and/or modify it under the terms of the GNU GENERAL PUBLIC LICENSE as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU GENERAL PUBLIC LICENSE for more details. You should have received a copy of the GNU GENERAL PUBLIC LICENSE along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.


Within the limits of the GNU GENERAL PUBLIC LICENSE, you can use the toolbox as you please. If you use the toolbox in a work of your own that you wish to publish, please make sure to cite the the user manual, and the original studies as below properly. This way you will contribute to helping other scholars find these items.

[1] Esmaeil Seraj, “Cerebral Signal Phase Analysis Toolbox - User Guide Version 2.1,” arXiv Preprint, Dec. 2017 [Online]. Available:

[2] Esmaeil Seraj and Reza Sameni, “Robust Electroencephalogram Phase Estimation with Applications in Brain-computer Interface Systems,”Physiological Measurement, vol. 38, no. 3, pp. 501–523, Feb. 2017. [Published Online]DOI: 10.1088/1361-6579/aa5bba

[3] Reza Sameni and Esmaeil Seraj, “A Robust Statistical Framework for Instantaneous Electroencephalogram Phase and Frequency Analysis,” Physiological Measurement, vol. 38, no. 12, pp. 2141–2163, Nov. 2017. [Published Online] DOI: 10.1088/1361-6579/aa93a1