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

swa_SleepScoring and Matlab error #55

Open gillkm opened 6 years ago

gillkm commented 6 years ago

Hi, I am a new user of the toolbox and am getting the following error when I try to load the swa_SleepScoring Gui in Matlab 15b.

swa_SleepScoring Undefined function 'setVerticalAlignment' for input arguments of type 'handle.handle'.

Error in swa_SleepScoring>DefineInterface (line 99) jStatusBar.setVerticalAlignment(javax.swing.SwingConstants.CENTER);

Error in swa_SleepScoring (line 7) DefineInterface

Any help is appreciated!

Mensen commented 6 years ago

Hi there!

This is unfortunately a common error since certain versions of matlab are a little more sensitive to certain elements in the toolbox.

The "fix" for this is to close and re-open the program. Usually within a couple of tries this resolves the issue.

If your goal is to use the toolbox for sleep scoring, even I have switched to using another toolbox I developed: https://github.com/CSC-UW/csc-eeg-tools

The csc_eeg_plotter in that toolbox is a little more generalised to viewing any EEG trace, with more flexible montage options, keyboard shortcuts, and event saving functions. So the swa_SleepScoring function will likely be removed in the future entirely to avoid overlap.

For slow wave, spindle or saw-tooth wave analysis, I do recommend this swa-matlab toolbox though :)

Hope that helps!