Mensen / swa-matlab

Sleep Wave Analysis - an open source toolbox for matlab to score and analyse various waveforms in sleep EEG data
52 stars 20 forks source link

Error when trying to see Spindles Waves #52

Open AgustinSolano opened 7 years ago

AgustinSolano commented 7 years ago

Dear, I am starting to use the toolbox to detect spindles. I am gettig these errors:

_Error using Inner matrix dimensions must agree. Error in swa_Explorer>update_SWPlot (line 857) (data./max(data) data_max) - data_max,... Error in swa_Explorer>SliderUpdate (line 636) handles = update_SWPlot(handles); Error using Inner matrix dimensions must agree. Error in swa_Explorer>update_SWPlot (line 857) (data./max(data) data_max) - data_max,... Error in swa_Explorer>SpinnerUpdate (line 618) handles = updateSWPlot(handles);

I am working with MATLAB R2017a in Ubuntu 14.04 LTS.

I used the SS template script with my own data. Have you got any further infromation/tutorial about toolbox usage? I dont really undestand all its functions.

Thanks in advance!

Mensen commented 7 years ago

Hey Agustin, Sorry to hear you are having these troubles. Before you run the swa_Explorer with this data, does the output of the main detection tools [Data, Info, SS] seem okay? In particular were spindles detected and their properties outlined in the SS structure? Otherwise, something happened during the detection already and this error is caused when trying to plot no results.

What format is your data in? Did you convert from EEGLAB, or did you load the data in manually?

Do you get the same error if you run the steps with the example dataset in the "Templates" folder?