Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the "scroll dataset" button in pop_select() seems to work only with the variable "EEG", not with, e.g., "myEEG" in pop_select(myEEG) #833

Open
cmaidhof opened this issue Dec 2, 2024 · 0 comments

Comments

@cmaidhof
Copy link

cmaidhof commented Dec 2, 2024

Description

When I call pop_select from a script and press the "scroll dataset" button, it seems to always use variable EEG as input - even if I call pop_select(myEEGstructWithAnotherName). If there is a variable EEG in the workspace, it seems it will plot the data from that EEG variable, and not from the one given as a parameter with the function call. If there is no variable named "EEG" in the workspace, I get an error (Unable to resolve the name 'EEG.data'.)


#### Steps to Reproduce
  1. load any dataset, for example data in eeglab sample data folder: myEEG = pop_loadset();]
  2. if exist('EEG'); clear EEG; end
  3. [pop_select(myEEG)]
  4. [press "Scroll dataset" button in dialog]

#### Expected behavior: Maybe it is the correct behavior, although I would have expected that the input dataset (parameter from function call) would have been plotted, independently from the name.
#### Actual behavior: [If no "EEG" variable exists, an error is thrown. If "EEG" variable exists, this variable "EEG" will be plotted (instead of the variable given as the parameter).]
#### Versions
OS version [WIN10 home]
Matlab version [R2024a]
EEGLAB version [2024.2.1]

Best, clemens

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant