Calling Maple from Matlab

54 visualizzazioni (ultimi 30 giorni)
Kathleen T. Nevola
Kathleen T. Nevola il 29 Ott 2018
Commentato: Walter Roberson il 13 Nov 2019
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 Commento
Kathleen T. Nevola
Kathleen T. Nevola il 30 Ott 2018
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.

Accedi per commentare.

Risposte (3)

M
M il 30 Ott 2018
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 Commenti
Kathleen T. Nevola
Kathleen T. Nevola il 30 Ott 2018
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 il 3 Nov 2019
maple() was a function that was available with the Extended Symbolic Toolbox before MATLAB switched to MuPAD based symbolic operations.

Accedi per commentare.


Sudhakar Akki
Sudhakar Akki il 30 Ott 2018
>>!maple
try this one. it will launch maple.
  1 Commento
Kathleen T. Nevola
Kathleen T. Nevola il 30 Ott 2018
I tried but I got this error:
'maple' is not recognized as an internal or external command, operable program or batch file.

Accedi per commentare.


Steven Lord
Steven Lord il 30 Ott 2018
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 Commenti
Walter Roberson
Walter Roberson il 9 Nov 2019
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 il 13 Nov 2019
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.

Accedi per commentare.

Categorie

Scopri di più su Manage Products in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by