You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was wondering if there might be bug in line 104/105,
since for
dat.x=[];
ndims(dat.x)==2
will always hold.
So maybe dat.x=[] should be moved to after the if statement?!
X=dat.x;
dat.x=[];
if ndims(dat.x) == 2 % cnt
for chan=1:sz(2)
[S,F,T] = spectrogram(X(:,chan),opt.Window,opt.NOverlap,freq,dat.fs);
dat.x(:,:,chan)=S;
end
elseif ndims(dat.x)==3 % epoched
for chan=1:sz(3)
for seg=1:sz(2)
[S,F,T] = spectrogram(X(:,seg,chan),opt.Window,opt.NOverlap,freq,dat.fs);
dat.x(:,:,seg,chan)=S;
end
end
end
The text was updated successfully, but these errors were encountered:
I was wondering if there might be bug in line 104/105,
since for
will always hold.
So maybe dat.x=[] should be moved to after the if statement?!
The text was updated successfully, but these errors were encountered: