Now, MATLAB has to know about the locations of the libraries at runtime. Check if you have a file /.matlab7rc.sh. If not, copy the template from matlabroot/bin into your home directory.Open this file in a text editor. Scroll down to the macmacimaci64) section (line 188 ff). Add /usr/local/opt/llvm/lib to LDPATH_PREFIX, so it might read
The yprime.c source code is in the matlabroot folder. In MATLAB, copy the file to a local, writable folder, for example /Users/Shared/work. Create the folder if it does not exist, and set it as your current folder in MATLAB.
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.
The path to gcc and matlab depends on your system and should be set accordingly.If you uesd homebrew to install gcc, it should have ended up in some place calledCellar typically found in /usr/local/. Check the right version and replace themaccordingly in the lines below. The same of coure applies to the Mathlab path andversion. If you are one an architecture other than x86_64, also set this one correctly(e.g. or leave the option out completely and hope that automatic recognition will work).For the ARMv8 from Apple this is currectly untested.
For staff wishing to have matlab installed on a device that will remain permanently on campus for either themselves or one of their students, please contact your local IT support staff.
If you installed cplex in a non default folder (or if you are using the community version) please make sure, that you create an environment variable ILOG_CPLEX_PATH pointing to the directory containing the CPLEX matlab bindings. This can also be done by creating a startup.m file as detailed here here.In this startup file add the following command:setenv('ILOG_CPLEX_PATH','C:\\CPLEX_Studio\cplex\matlab\')where is the path to cplex, is the installed version and is the architecture identifier.
Actually, I just realized that I installed the recent 2023b (apple slicon) matlab with dynare 5.4 which are not compatible. so i solved the problem with installing 2023a. my bad, sorry for the confusion.
Make sure the Knitro/MATLAB interface files knitromatlab_mex.mex*,knitromatlab_*.p, knitro_*.p, etc.,are located in a folder/directory where they can be found by your MATLAB session.See Installation for more information on adding the Knitro/MATLABinterface files to your MATLAB path.
b73f46f91f