Calling Maple from Matlab

조회 수: 79 (최근 30일)
Kathleen T. Nevola
Kathleen T. Nevola 2018년 10월 29일
댓글: Walter Roberson 2019년 11월 13일
For one of my classes I am implementing a model from a published paper. The code for the model I chose calls maple. I have installed Maple and can call Matlab from Maple but I cannot get the maple function to work from matlab.
For example:
> maple('restart')
Results in the following error:
> Undefined function or variable 'maple'.
Im new to Matlab and have never used Maple but I cannot seem to find an answer online.
Any help would be greatly appreciated.
  댓글 수: 1
Kathleen T. Nevola
Kathleen T. Nevola 2018년 10월 30일
So this code was originally published in 2014 as part of a PLOS Computational Biology Paper entitled "Possible Role of Interleukin-1b in Type 2 Diabetes Onset and Implications for Anti-inflammatory Therapy Strategies".
I am trying to run the code as it is written using MATLAB 2018. The code has several lines starting in maple(), so I assume maple is a function.

댓글을 달려면 로그인하십시오.

답변 (3개)

M
M 2018년 10월 30일
Maple is not a built-in function that you can call in matlab.
If you have installed Maple on your computer, you can launch it from Matlab using the system command.
  댓글 수: 2
Kathleen T. Nevola
Kathleen T. Nevola 2018년 10월 30일
OK. I tried system(maple) and !maple as suggested below and neither works. I can call MATLAB from Maple. The code from the paper explicitedly uses maple() to set parameters for maple to do the modeling.
Walter Roberson
Walter Roberson 2019년 11월 3일
maple() was a function that was available with the Extended Symbolic Toolbox before MATLAB switched to MuPAD based symbolic operations.

댓글을 달려면 로그인하십시오.


Sudhakar Akki
Sudhakar Akki 2018년 10월 30일
>>!maple
try this one. it will launch maple.
  댓글 수: 1
Kathleen T. Nevola
Kathleen T. Nevola 2018년 10월 30일
I tried but I got this error:
'maple' is not recognized as an internal or external command, operable program or batch file.

댓글을 달려면 로그인하십시오.


Steven Lord
Steven Lord 2018년 10월 30일
The Symbolic Math Toolbox used to be based on the Maple Engine, but in release R2007b+ the MuPAD Engine replaced that engine. At some point over the past decade the maple function that allowed you to directly access the Maple Engine was removed, I'm not certain exactly when.
Depending on what the code was calling the Maple Engine to try to do, it's possible that over the past decade that functionality has been added as a function in Symbolic Math Toolbox. Alternately, you may be able to find an equivalent MuPAD function that you can call via symengine. Note the Compatibility Considerations section: if you find you need to call a MuPAD function directly because there is no equivalent in Symbolic Math Toolbox, please contact Technical Support to let us know.
  댓글 수: 9
Walter Roberson
Walter Roberson 2019년 11월 9일
That's the problem: I did not find appropriate documentation. The documentation I found pointed to things that did not exist anymore, and did not have any list of the calls available. I opened a bug with Maplesoft about that, and afterwards when I went to look back at my bug, I found that they had a bug in the bug-reporting system, which I had to find a different way to report to them...
Walter Roberson
Walter Roberson 2019년 11월 13일
The documentation... well, the official answer for that is,
Start MATLAB® and then open the MATLAB® help system. To open the main Maple Toolbox help page, click Supplemental Software and select Maple Toolbox from the table of contents.

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by