I have an eeg signal and i am trying to plot it time vs amplitude, for some reason it is clipping and i dont know how to fix it, changing the ylim only changes the axis, please help
here is the code
close all; clear all; clc;
fs = 512
T = 1/fs;% sampling rate or frequency
load 'base' % contains eeg1 and fs
tx =[0:length(data)-1]/fs;% Make time axis for EEG signal
figure; subplot (211), plot(tx,data); xlabel('Time (s)'), ylabel('Amplitude (uV)'), title('Original EEG signal'); %EEG waveform
subplot(212), plot(tx,data);
xlabel('Time (s)'), ylabel('Amplitude (uV)'), title('Zoom into original EEG signal at 1 to 2 seconds'), xlim([1,2]) % Used to zoom in on single ECG waveformfigure;
%The mean of the PSDs of xl
mean_EEGsig = mean(data)
max_value=max(data)
mean_value=mean(data)
threshold=(max_value-mean_value)/2;
Screen Shot 2019-11-10 at 9.56.27 PM.png

3 件のコメント

Daniel M
Daniel M 2019 年 11 月 11 日
編集済み: Daniel M 2019 年 11 月 11 日
I think your data is clipped. Actually, it looks like normal EEG data with very high amplitude electrical stimulation on top of it. Does this occur in all channels?
Nina Ciccarelli
Nina Ciccarelli 2019 年 11 月 11 日
yes it does
Star Strider
Star Strider 2019 年 11 月 11 日
Unfortunately, you ‘railed’ the amplifier. You cannot recover the lost data.

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeEEG/MEG/ECoG についてさらに検索

質問済み:

2019 年 11 月 11 日

コメント済み:

2019 年 11 月 11 日

Community Treasure Hunt

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

Start Hunting!

Translated by