MATLAB GUI Check button and wave bands representation
Show older comments
Hi guys,
I am currently working on a signal processing GUI to create a stress indicator and i have attached my code. At the moment i am working with a data set from the internet which is attached (testsleep data.csv), however i have not connected my EEG raw data reading code yet to connect the headset to the GUI.
The data is coming through this code: filename =
Currently i am working on showing the Alpha, Beta and Theta waves on the graph when they are checked on. I need assistance on the check buttons so when one checkbox is ticked the other two cannot be clicked on, therefore only allowing one checkbox to be ticked at a time.
Additionally when i click the start button, the raw data is continuously running but the bar graphs shows the mean of all three data bands as the same number which is incorrect. They should be different and i cannot figure out what code is needed. The problem is in this lines of code:
I know crt+1:ctr+100 is incorrect but i put it just to test the bar graph.
Please do not mind the beta code that i have placed a %, this is just to test the alpha band.
1 Comment
Rena Berman
on 29 Mar 2017
(Answers Dev) Restored edit
Answers (1)
Adam
on 28 Feb 2017
Use
doc uibuttongroup
with radio buttons instead. This handles all the mutual exclusivity for you as it is the purpose of radio buttons over checkboxes.
Categories
Find more on EEG/MEG/ECoG in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!