|
I've found the solution. The PATH needs to have in it the directory where gfortran is stored, in my case "/usr/local/bin/". However, you cannot add this directory by using the graphical user interface in the Matlab top menu (File...Set path...etc). I guess this is because the Mac hides this and other directories within the Matlab application "package".
I worked around this problem by placing a path statement in my startup.m file as follows:
setenv('PATH', [getenv('PATH') ':/usr/local/bin']);
This is the directory where the GNU gfortran 4.3.0 installer automatically puts the compiler.
I'd be curious if anyone else has had this problem and whether they have found this solution helpful.
Thanks
|