ahay / src

Main Madagascar source
Other
273 stars 175 forks source link

m8r with MATLAB/Python #163

Open gfeo1 opened 5 years ago

gfeo1 commented 5 years ago

Hi So from http://www.ahay.org/wikilocal/docs/Matlab_interface.pdf, I am trying to configure Matlab with Madagascar I did the

./configure API=matlab MATLAB=/path/to/matlab MEX=/path/to/mex

And then I tried to set the Matlab path to $RSFROOT/lib with export MATLABPATH=$MATLABPATH}:~/usr/RSFSRC

but when I am in Spyder (Python), when I try to import m8r, I get the error: "ModuleNotFoundError: No module named 'm8r'.

Does this have something to do with the $RSFROOT or path? =

zhichenggeng commented 5 years ago

Hi, did you add the following line to your .bashrc file, if you are using bash

source ~/usr/RSFROOT/share/madagascar/etc/env.sh