Error "Unbalanced or unexpected parenthesis or bracket."

1 vue (au cours des 30 derniers jours)
afef
afef le 19 Mai 2017
Commenté : afef le 20 Mai 2017
Hi, i wanted to minimize my code and i tried this
clc;
clear all;
close all;
load('C:\Users\del.dell-PC\pfe\base de donnée\patient avec crise\chb01_21_edfm.mat')
Fs=256;
result=cell(23,1);
d1=designfilt('lowpassfir','PassbandFrequency',0.45,'StopbandFrequency',0.5,'PassbandRipple',3,'StopbandAttenuation',60,'DesignMethod','equiripple');
for n=1:23
deriv=(val(n,:))/2.559375;
t=(0:length(deriv)-1)/Fs;
result{n} = filtfilt(d1,deriv);
moyenne{n}=mean(result{n},2);
variance{n} = std(result{n},[], 2);
Maximale{n}= max(result{n},[],2);
Minimale{n} = min(result{n},[],2);
[c,l]=wavedec(result{n},4,'db4');
[cd1,cd2,cd3,cd4]=detcoef(c,l,[1,2,3,4]);
cA4=appcoef(c,l,'db4',4);
[Ea,Ed]=wenergy(c,l)
end
[a,b,z,d,e,f,g,h,i,j,k,ll,m,n,o,p,q,r,s,x,u,v,w]=result{:};
But i dont know how to make the result of "Wenergy(c,l)" like
moyenne{n}=mean(result{n},2)
i tried this
energie{n}= [Ea,Ed](result{n},[],2);
but i got this error message "Unbalanced or unexpected parenthesis or bracket".
Can anyone help me please?

Réponses (1)

Walter Roberson
Walter Roberson le 19 Mai 2017
I am not at all clear what you are trying to do. Maybe
[Ea, Ed] = wenergy(c,l);
energie{n} = {Ea, Ed};
  5 commentaires
afef
afef le 20 Mai 2017
Thank you for the help.

Connectez-vous pour commenter.

Catégories

En savoir plus sur EEG/MEG/ECoG dans Help Center et File Exchange

Tags

Aucun tag saisi pour le moment.

Community Treasure Hunt

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

Start Hunting!

Translated by