Mensen / swa-matlab

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

Error when loading data into swa_Explorer() #60

Open SvennoNito opened 5 years ago

SvennoNito commented 5 years ago

Hey there! First of all thanks for creating such a wonderful toolbox. I'm just getting started detecting slow waves with your toolbox and I encountered a problem when trying to visualize the results.

So I perform all 4 detection steps as suggested in swa_SW_template.m and then I save the results like this

swa_saveOutput(Data, Info, SW, [], 1, 0)

When I then run swa_Explorer()and open the created results file, it throws this error


Error using memmapfile/subsref (line 764)
A subscripting operation on the Data field attempted to create a comma-separated list. The memmapfile class does not support the
use of comma-separated lists when subscripting.

Error in swa_Explorer>menu_LoadData (line 434)
        loaded_file.Data.Raw = temp_data.Data.eegData;

Error while evaluating Menu Callback.

Edit: When I change the saveOutput command to

swa_saveOutput(Data, Info, SW, [], 0, 0)

it works. Is that intended?