Linking MATLAB with Mathematica
54 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
grapevine
2012-7-26
If you are trying to export data from Mathematica to matlab you should have a look to this toolbox
http://library.wolfram.com/infocenter/MathSource/624/ http://www.mathworks.com/matlabcentral/fileexchange/6044-mathematica-symbolic-toolbox-for-matlab-version-2-0
and this other one if you need to import and/or export mat file http://www.mathworks.com/matlabcentral/fileexchange/12004 http://reference.wolfram.com/mathematica/ref/format/MAT.html
good luck
0 个评论
更多回答(1 个)
Said Rahal
2012-7-26
3 个评论
Walter Roberson
2012-7-26
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
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!