Running Matlab script from Freefem

Hi, I should run a matlab script from Freefem.

I read that is possible run terminal command in Freefem by using exec(…) or system(…). Anyway, I have problems with the launch of a matlab script by terminal.

I tried

exec(s),

with s = “/Applications/MATLAB_R2022a.app/bin/matlab -nodisplay -r /Desktop/Dottorato/Ricerca/img segmentation/stimatore roughening/untitled”

but I am getting this error:

/Desktop/Dottorato/Ricerca/img
|

Invalid use of operator.

Could you help me with this issue?

Thanks in advance,

Luca

What is the symbol between the matlab command and the parameter?
This looks like a winsdows issue, or something with invoking matlab.
What happens if you just type that string in at the command line?

I would suggest getting linux or cygwin :slight_smile: