Dear all,
I wanted to run freefem from matlab. inside Mathworks this command was proposed:
[file, path] = uigetfile(’*.edp’);
selectedFilePath = fullfile(path, file)
system(['FreeFem++ ’ Path]);
when I use this command, matlab opens the file location and when I click on the file it try to run it. although the code is right and without error when I run it by cmd, matlab shows error as follow:
selectedFilePath =
' \ '
– FreeFem++ v 3.600000 (date mar. 1 mai 2018 13:00:02)
Load: lg_fem lg_mesh lg_mesh3 eigenvalue
Error openning file E:\pasche\optimalmanipulationcontrol\AmijoplusSteepestdescentpluseigenvalue\Newfolder\optimalcontrol2 in:
– try :“E:\pasche\optimalmanipulationcontrol\AmijoplusSteepestdescentpluseigenvalue\Newfolder\optimalcontrol2”
– try :“F:\Program Files (x86)\FreeFem++\idp\E:\pasche\optimalmanipulationcontrol\AmijoplusSteepestdescentpluseigenvalue\Newfolder\optimalcontrol2”
Error line number 1, in file – unkown --, before token
lex: Error input openning file
current line = -1
Compile error : lex: Error input openning file
line number :1,
has anyone tried it before?