We've updated our privacy policy.

Repost: Error in SpectralTrainFig

5 posts
Was this reply useful? Learn more...
 
[-]
junaun +0 points · 4 months ago

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

172 posts
Was this reply useful? Learn more...
 
[-]
mrueschman +1 point · 4 months ago

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.

5 posts
Was this reply useful? Learn more...
 
[-]
junaun +0 points · 4 months ago

Thanks a lot! I shall try it out and see if it works!

Jun

172 posts
Was this reply useful? Learn more...
 
[-]
mrueschman +0 points · 4 months ago

Good luck - please let us know how it goes!

5 posts
Was this reply useful? Learn more...
 
[-]
junaun +1 point · 4 months ago

Thank you very much for your help! I have got it done with the source code!! and I found the interface of SpectralTrainFig is slightly different from the previous one I used. Thanks again! J

172 posts
Was this reply useful? Learn more...
 
[-]
mrueschman +0 points · 4 months ago

Great! Yes, Sara Mariani created the "nsrr" fork of the tool and made some enhancements to the interface in recent years.

Topic is locked. Start a new topic