Why emd function doesn't work in my code?
7 ビュー (過去 30 日間)
古いコメントを表示
clc;
clear;
load s1.mat;
load HEOG.mat;
s = s1.train;
y0 = datasample(s,1);
y = y0(1:5000);
g = heog_1;
g = g(1:5000);
x = y+g;
% first 5000 samples
figure; p=plot(y);
hold on;
plot(g);
plot(x,'black');
hold off;
legend('EEG Signal','EOG Signal', 'EEG signal Containing EOG');
title('EEG Signal');
[imf,residual,info] = emd(y0,'Interpolation','pchip'); %%There is an error
figure;hht(imf,5000)
1 件のコメント
Jan
2022 年 6 月 19 日
Whenever you mention an error in the forum, attach a copy of the complete error message. It is much easier to fix an error than to guess, what the error is.
回答 (1 件)
prabhat kumar sharma
2024 年 7 月 23 日
Hi Komal,
I suggest you share the complete error message for better diagnosis. Based on my observations, you can check the following steps:
1.Ensure the Signal Processing Toolbox is installed:
ver signal
2. Check that y0 is a numeric vector:
disp(class(y0));
disp(size(y0));
3. Verify the correct use of emd function:
[imf, residual, info] = emd(y0, 'Interpolation', 'pchip');
If you still encounter an error, please provide the complete error message for further assistance.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で EEG/MEG/ECoG についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!