Filter löschen
Filter löschen

Calling Maple from Matlab

80 Ansichten (letzte 30 Tage)
Kathleen T. Nevola
Kathleen T. Nevola am 29 Okt. 2018
Kommentiert: Walter Roberson am 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 Kommentar
Kathleen T. Nevola
Kathleen T. Nevola am 30 Okt. 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.

Melden Sie sich an, um zu kommentieren.

Antworten (3)

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

Melden Sie sich an, um zu kommentieren.


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

Melden Sie sich an, um zu kommentieren.


Steven Lord
Steven Lord am 30 Okt. 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 Kommentare
Walter Roberson
Walter Roberson am 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 am 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.

Melden Sie sich an, um zu kommentieren.

Community Treasure Hunt

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

Start Hunting!

Translated by