Modulation index for two vectors

조회 수: 5 (최근 30일)
Sparsha Kumari
Sparsha Kumari 2022년 6월 24일
답변: Nithin Kumar 2023년 9월 1일
Hello,
I have two column vectors (representing two waves) and have to calculate the modulation index for each vector. Both the vectors are real and are EEG signals. Could someone suggest me how to proceed?

답변 (1개)

Nithin Kumar
Nithin Kumar 2023년 9월 1일
Hi Sparsha,
I understand that you want to find the modulation index of two real and EEG signals.
To calculate the modulation index for each vector representing EEG signals in MATLAB, kindly refer to the following sample code:
1. Calculate the analytic signal for each EEG vector using the Hilbert transform.
analytic_signal1 = hilbert(signal1);
analytic_signal2 = hilbert(signal2);
2. Compute the instantaneous phase and amplitude of the analytic signals.
phase1 = angle(analytic_signal1);
phase2 = angle(analytic_signal2);
amplitude1 = abs(analytic_signal1);
amplitude2 = abs(analytic_signal2);
3. Calculate the modulation index.
modulation_index = (abs(amplitude1 - amplitude2)) ./ (amplitude1 + amplitude2);
I hope this answer helps you.

카테고리

Help CenterFile Exchange에서 EEG/MEG/ECoG에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by