Error with Generate .m script

Hi all,
I'm trying to use the generate .m script, but I get an error.

Running matlab 2017a. Brainstorm version 20-Jul-2018. Running on linux.

Even if I do a process that works perfectly in the gui, when I click Generate .m script:
Undefined variable "matlab" or class "matlab.internal.webwindowsmanager.instance.findAllWebwindows"

I am working on a remote client, so it's difficult to copy the terminal text. I've attached a screenshot.

Hello

It looks like the problem is related with your matlab install, not with brainstorm. The function uiputfile looks like it’s not working, you could test it separately by simply typing “uiputfile” in your Matlab command window.
If you want to fix this issue: try reinstalling Matlab or post a bug report on the Mathworks website.

If you want to make the script generation in Brainstorm work despite this error, you’d have to hack your local Brainstorm install. Edit function brainstorm3/toolbox/process/panel_process_select.m, replace line 2229 with something that sets the variable ScriptFile without using Matlab function uiputfile.m

Francois

Ah! I see. Thank you very much, I will try that.

Megan