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
Jun,
Could you try the NSRR fork of this tool? https://github.com/nsrr/SpectralTrainFig (download source code and extract on your computer)
I was able to get this working with the example EDF/XML. I changed the XML Suffix to ".EDF.XML" since that's what the example file has for the extension.
I am sorry about the struggles you have had with the tools up until this point - the original authors of SpectralTrainFig are no longer connected to the NSRR, so we don't have in-house support.