Error "Unbalanced or unexpected parenthesis or bracket."

2 visualizaciones (últimos 30 días)
afef
afef el 19 de Mayo de 2017
Comentada: afef el 20 de Mayo de 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?

Respuestas (1)

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

Iniciar sesión para comentar.

Categorías

Más información sobre EEG/MEG/ECoG en Help Center y File Exchange.

Etiquetas

Aún no se han introducido etiquetas.

Community Treasure Hunt

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

Start Hunting!

Translated by