Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016

Linking MATLAB with Mathematica

Asked by Said Rahal on 26 Jul 2012

Hello, I do not have the symbolic math or curve fitting toolbox in MATLAB, so in order to complete my project I have to get help from mathematica. After writing the function in mathematica I tried to import the package (.m file) to MATLAb and I recieved the following error message even though the package is in MATLAB directory: Error using import Import argument 'basicFunction.m' cannot be found or cannot be imported.

Can anyone share his/her knowledge about that? Thanks

0 Comments

Said Rahal

Products

No products are associated with this question.

2 Answers

Answer by grapevine on 26 Jul 2012
Accepted answer

0 Comments

grapevine
Answer by Said Rahal on 26 Jul 2012

Thank you for your assistance grapevine. The Mathematica symbolic toolbox is like any other toolbox in MATLAB, in a sense that I need to buy a license to download it. Am I right?

3 Comments

Walter Roberson on 26 Jul 2012

No, it is a contributed file. Just has to be downloaded, installed, and compiled.

Said Rahal on 26 Jul 2012

Ok, I downloaded but how should I install it and compile it in MATLAB Forgive my ignorance Thanks

Walter Roberson on 26 Jul 2012

Create a directory. unzip it into the directory. Use pathtool to add the directory to your MATLAB path. Inside MATLAB, use

mex -setup

to select a compiler. If you do not have a compiler already installed, you will need to install one (and possibly a SDK as well.)

I do not know the exact mex command that will be needed to compile, but I suspect that it is documented in the files inside the .zip

Said Rahal

Contact us