Closed arnodelorme closed 5 years ago
Hi Arno,
Thanks for reporting this.
Is that snippet from eeglab.m?
Strangely, I'm on (the latest?) EEGLAB v14.1.2 and ERPLAB v7 and I don't get that error. Also Matlab R2018a.
Ah - I see. 2019.0 is the latest development version of EEGLAB you are working on.
I do now see this error. I think it only shows once, and then Matlab needs to be restarted to see it again.
This error is produced when eeglab.m calls eeg_global.m.
Error only manifests:
I think this is the first time that eeglab is called again after eegplugin_erplab.m is run.
So I think I can fix this by ensuring that the first use of ALLERP in eegplugin_erplab.m is of the global ALLERP.
Testing this looks like it stops that Matlab warning message!
Could you check that the ERPLAB in this commit fixes this for you? https://github.com/lucklab/erplab/archive/db4a9ca6fd74e070d1f97c5e286e5bb2b970c94b.zip
Cheers, Andrew
Yes no more warning.
Description
I get this warning message when starting EEGLAB "Warning: The value of local variables may have been changed to match the globals. Future versions of MATLAB will require that you declare a variable to be global before you use that variable."
This is due to ERPLAB code in the eeg_global function of EEGLAB. How can we remove the warning message (I am maintaining EEGLAB).
Steps to Reproduce
Expected behavior:
No Warning
Actual behavior:
Warning is displayed
Versions