Hello,
I would like to repost the question I asked several weeks ago as I am still looking for a solution:
Repost:
I would like to use the SpectralTrainFig app to perform EEG spectral analysis. I have successfully installed the app into my matlab.
but when I try following the instructions on https://github.com/DennisDean/SpectralTrainFig/blob/master/QuickStartSouceCode.md
and analyze the sample 450002.edf
the following error messages are shown on the console:
//Spectral Analysis
Getting matched EDF/XML files
XML File names for which an EDF file could not be found 450002.EDF.XML Number of XML files for which a matched EDF file could not be found: 1
XML File names for which an EDF file could not be found 450002.EDF.XML Number of XML files for which a matched EDF file could not be found: 1
Checking EDFs for required signals Loading file information and setting up analysis variables
Loading data from: 450002.EDF, 14-Dec-2018 17:29:45 Unit conversion from mV to uV Error using welchparse>segment_info (line 188) The length of the segments cannot be greater than the length of the input signal.
Error in welchparse (line 32) [L,noverlap,win] = segment_info(M,win,noverlap);
Error in welch (line 40) welchparse(x,esttype,varargin{:});
Error in pwelch (line 158) [varargout{1:nargout}] = welch(x,esttype,varargin{:});
Error in SpectralTrainClass/computeSpectralTrain (line 928)
Error in SpectralTrainFig>pb_fig_go_Callback (line 304)
Error in gui_mainfcn (line 95) feval(varargin{:});
Error in SpectralTrainFig (line 89)
Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)SpectralTrainFig('pb_fig_go_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback//
How can the problem be solved?
Many thanks!!
Jun