"Generate .m script" to run wMEM

Thanks for the reply; however, I am still having the same issue. I cannot generate a .m script, or rather: 1) after I click on generate .m code, it takes several minutes to display the pop-up window to save the code (like 10 minutes!)
2) once I save it, matlab editor does not allow to open it (java errors)

@Francois I am copying below the screenshots. Also it could be helpful to know that I am working on hd-eeg data (256 channels); since the m. code includes all the list of channels and their location, this may be relevant.
THANKS!

Input file

Options (wMEM)