MATLAB 2014aon Mac OS is not capable of evaluating or returning values via the the Simulationconsole console, which causes the modeling tool to freeze. To solve this problemHence, you must upgrade MATLAB to 2014bor later.
For Mac users, Simulation Toolkit Version 18.5 SP2 and later can integrate with MATLAB 2016bMATLAB 2016b can be integrated seamlessly without disabling System Integrity Protection (SIP) unless it is necessary to disable SIP (as a new feature of the latest OS X El Capitan) for successful integration. However, MATLAB 2015b cannot be integrated even if the SIP is disabled.
To disable OS X El Capitan's System Integrity Protection (for Mac OS X)
Restart your Mac.
As soon as the screen turns black, hold down the command + R keys to access the Recovery Partition.
When the Apple logo appears on the screen, release the keys.
Click the Utilities menu and select Terminal.
Type csrutil disable in the Terminal dialog and press Return. A message will appear to indicate that SIP has been disabled.
Restart your Mac again for the changes to take effect.
Run MagicDraw/Cameo Systems Modeler and integrate it with MATLAB.
To use MATLAB® on Mac OS 10.6 (Snow Leopard)
Install MATLAB®.
Type the following commands in the terminal to show all files in Finder • $ defaults write com.apple.finder AppleShowAllFiles TRUE • $ killall Finder
Add the DYLD_LIBRARY_PATH variable to Mac OS: 3.1 Create an empty text file in the /etc folder and name it: launchd.conf. 3.2 Open it with a text editor, for example, TextEdit, and type the following text (no space)
3.2 Change the /Applications/MATLAB_R2012a.app to your MATLAB directory. 3.3 Save the text file. (If you are using TextEdit, change the file to plain text by clicking Format > Make Plain Text). 3.4 Rename it as com.nomagic.magicdraw.simulation.mathengine.plist.
(Note: If you already have the file com.nomagic.magicdraw.simulation.mathengine.plist in /Library/LaunchAgents, add :/Applications/MATLAB_R2012a.app/bin/maci64:/Applications/MATLAB_R2012a.app/runtime/maci64to your DYLD_LIBRARY_PATH in your com.nomagic.magicdraw.simulation.mathengine.plist. For example, launchctl setenv DYLD_LIBRARY_PATH <Other_Path>:/Applications/MATLAB_R2012a.app/bin/maci64:/Applications/MATLAB_R2012a.app/runtime/maci64.)
Create the file com.nomagic.magicdraw.simulation.mathengine.matlab.plist. 4.1 Create a text file and type the following text.
4.2 Change "/Applications/MATLAB_R2012a.app" to your MATLAB directory. 4.3 Save the text file. (If you are using TextEdit, change the file to plain text by clicking Format > Make Plain Text). 4.4 Rename it as com.nomagic.magicdraw.simulation.mathengine.matlab.plist.
Move the files to /Library/LaunchAgents/ by using the Terminal. 5.1 Run the Terminal. 5.2 Go to the plist files directory.
$ cd [your plist file directory]
al5.3 Move the plist file to /Library/LaunchAgents/ using the following command