rsmenon / MATLink

Communicate with MATLAB from Mathematica
matlink.org
67 stars 14 forks source link

Simulink in MATLink #118

Open lsfarahani opened 1 year ago

lsfarahani commented 1 year ago

How can I run Simulink in MATLink? I use MEvaluate and get error " No system or file called 'SDOF.slx' found" simulink file and Matematica notebook are in the same folder

szhorvat commented 1 year ago

The current directory of Mathematica and MATLAB are not synchronized. You need to set each separately. Furthermore, the current directory of Mathematica is not necessarily the same as the notebook directory.

Evaluate the appropriate MATLAB command inside of MEvaluate to set MATLAB's directory and try again.

Or use the full path to the file you want to open.