Question: Configuring a Matlab-Maple Link in Version 13

I cannot set up a link between the student version of Maple 13 and Matlab.

I have followed the instrutions in ?Matlab,setup and things still do not work. I have even done everything manually. On the prompt I have done many variations on the following:

$ export PATH=$PATH:/Library/Frameworks/Maple.framework/Versions/13/bin

$ export MATLAB_BASEDIR=/Applications/MATLAB/MATLAB_R2009aSV.app/bin/matlab

$ maple

    |\^/|     Maple 13 (APPLE UNIVERSAL OSX)
._|\| |/|_. Copyright (c) Maplesoft, a division of Waterloo Maple Inc. 2009
\ MAPLE / All rights reserved. Maple is a trademark of
<____ ____> Waterloo Maple Inc.
| Type ? for help.
> with(Matlab):
> setvar("x",1.2):
Error, (in Matlab:-setvar) there was a problem finding or loading matlink.so. Refer to ?Matlab,setup for help
configuring your system to work with the Matlab-link.
>
Any help on how to correctly set up a link would be appreciated.
Please Wait...