Matlab interface

Hi Chris,

I am trying to get the Matlab bridge working with MWorks and it doesn’t seem to exist. I followed the setup instructions and created an alias in /Applications (but there was no step to point MWorks to that alias). However, when I run MWorks (64-bit) there is no option to open a matlab window from the magnifying glass. I am using MWorks Version 0.6.dev-20130924 (ffa06ca) and Matlab 2013b on OS 10.8.4. Any thoughts?

Thanks!
A

Hi Alex,

It sounds like the MATLAB plugin is failing to load. Can you do the following?

  1. Open Console.app, type “mwclient” in the search box in the upper right, and then click the “Clear Display” button in the toolbar
  2. Launch MWClient.app
  3. Check the Console.app window for messages. You’ll probably see one that says The bundle “MWorksMATLABWindow” couldn’t be loaded .... Please copy the text of that message and send it to me.

Thanks,
Chris

Hi Chris,

Sorry for the delay. You’re right and here’s the error text:

10/21/13 2:55:33.050 PM MWClient[1668]: Couldn’t load bundle: The bundle
“MWorksMATLABWindow” couldn’t be loaded because it is damaged or missing
necessary resources.: {
NSBundlePath = “/Library/Application
Support/MWorks/Plugins/Client/MWorksMATLABWindow.bundle”;
NSDebugDescription = “dlopen_preflight(/Library/Application
Support/MWorks/Plugins/Client/MWorksMATLABWindow.bundle/Contents/MacOS/MWorksMATLABWindow):
Library not loaded: @rpath/libeng.dylib\n Referenced from:
/Library/Application
Support/MWorks/Plugins/Client/MWorksMATLABWindow.bundle/Contents/MacOS/MWorksMATLABWindow\n
Reason: image not found”;
NSFilePath = “/Library/Application
Support/MWorks/Plugins/Client/MWorksMATLABWindow.bundle/Contents/MacOS/MWorksMATLABWindow”;
NSLocalizedDescription = “The bundle \U201cMWorksMATLABWindow\U201d
couldn\U2019t be loaded because it is damaged or missing necessary
resources.”;
NSLocalizedFailureReason = “The bundle is damaged or missing necessary
resources.”;
NSLocalizedRecoverySuggestion = “Try reinstalling the bundle.”;
}

Alex

Hi Alex,

That message indicates that the symbolic link to your MATLAB installation is missing or broken. Can you open Terminal.app, run the following commands, and send me the output?

cd /Applications
ls -ld MATLAB*
file MATLAB/bin/maci64/libeng.dylib

If you want to recreate the symlink, here’s how to do it in Terminal:

cd /Applications
rm MATLAB
ln -s MATLAB_R2013b.app MATLAB

Thanks,
Chris

Oh, ok thanks! Re-creating the link did the trick. I had tried that but
must have just made the same mistake twice. Anyway, thank you!

In case it’s interesting here is the result of

cd /Applications
ls -ld MATLAB*
file MATLAB/bin/maci64/libeng.dylib

lrwxr-xr-x 1 Alexandra admin 16 Oct 17 16:04 MATLAB → MATLAB_2013b.app
drwxr-xr-x 25 Alexandra admin 850 Sep 23 12:42 MATLAB_R2013b.app

MATLAB/bin/maci64/libeng.dylib: cannot open
`MATLAB/bin/maci64/libeng.dylib’ (No such file or directory)

Thanks again!
Alex