Calling Maple from Matlab
Show older comments
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 Comment
Kathleen T. Nevola
on 30 Oct 2018
Answers (3)
M
on 30 Oct 2018
0 votes
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 Comments
Kathleen T. Nevola
on 30 Oct 2018
Walter Roberson
on 3 Nov 2019
maple() was a function that was available with the Extended Symbolic Toolbox before MATLAB switched to MuPAD based symbolic operations.
Sudhakar Akki
on 30 Oct 2018
0 votes
>>!maple
try this one. it will launch maple.
1 Comment
Kathleen T. Nevola
on 30 Oct 2018
Steven Lord
on 30 Oct 2018
0 votes
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 Comments
Walter Roberson
on 30 Oct 2018
If you install a current version of maple after you install MATLAB then the maple installation will detect MATLAB and ask you whether you want to install a connector package into MATLAB. If you permit it, then it will install a toolbox that uses maple for symbolic calculations in MATLAB, including an interface to call maple functions directly.
zhang sifei
on 3 Nov 2019
But how to solve this problem? Could you please give me some helpful suggestions?

Walter Roberson
on 3 Nov 2019
Use the drop-down box to select the directory that MATLAB is in.
zhang sifei
on 8 Nov 2019
Does you have any detail manual for Matlab programming using Maple symbolic engine?
Best regards.
Walter Roberson
on 8 Nov 2019
Unfortunately it is more difficult than it needs to be to find appropriate documentation for the Maple Toolbox for MATLAB, from Maplesoft. I have reached out to Maplesoft to get links to the appropriate documentation.
Walter Roberson
on 8 Nov 2019
(... and I found a bug in the Maplesoft bug reporting system. Good thing I happened to go to review my report afterwards.)
zhang sifei
on 9 Nov 2019
You are brillian.
How do you find it?
Could you share these appropriate documentations you found?
Walter Roberson
on 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
on 13 Nov 2019
The installation guide for it turns out to be at https://www.maplesoft.com/support/install/2019/Maple/Install.html#MapleInstallGuide_MapleToolbox
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.
Categories
Find more on Code Performance in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!