Filter löschen
Filter löschen

How run maple code in matlab

18 Ansichten (letzte 30 Tage)
mahipal komandla
mahipal komandla am 27 Aug. 2015
Kommentiert: Walter Roberson am 14 Nov. 2021
How run maple code in matlab

Antworten (2)

Walter Roberson
Walter Roberson am 27 Aug. 2015
Maple code cannot be run in MATLAB.
Some Maple code can be run as MuPAD code if you have the Symbolic Toolkit; see http://www.mathworks.com/discovery/mupad.html
If you install Maple when you have MATLAB installed, then Maple will offer to install a toolkit that has interfaces between MATLAB and Maple. I have not been able to get that toolkit to work over the last several Maple releases, but I have not tried recently. The documentation for that Maplesoft package is at http://www.maplesoft.com/products/maple/features/matlabconnectivity.aspx

Edison Sanchez Carrillo
Edison Sanchez Carrillo am 14 Nov. 2021
How works maple(’with(combinat)’) in Matlab...?
  1 Kommentar
Walter Roberson
Walter Roberson am 14 Nov. 2021
For that, there are two possibilities.
One is that you are using MATLAB R2007a or earlier (I think it was), together with the extra-cost Extended Symbolic Math Toolbox. I say "extra-cost" because at the time, the Symbolic Math Toolbox was implemented as a restricted interface between MATLAB and Maplesoft's Maple software, that was available at a discount compared to a regular Maple license; if you instead paid the amount equivalent to a regular Maple license, then the restrictions on the interface were removed, allowing you to use the full power of Maple from within MATLAB by using the maple() call. The technology involved at the time to invoke maple() was much the same as the technology as it exists now.
If you are looking at old publications, then any references you see to maple() called within MATLAB are fairly likely to be references to the Extended Symbolic Math Toolbox license. I recall seeing publications as late as 2013 using that interface, with the people having created their software years before but publication having gotten delayed for years. A fair bit of the time, the authors had not even realized the software wouldn't work anymore, as they had not upgraded their MATLAB in years...
The second possibility is that you have MATLAB, and you also happen to have Maplesoft's Maple, and when you installed Maple it noticed MATLAB installed, and asked you whether you wanted to install the Maple MATLAB Connector, and you told it to go ahead. This involves little or no cooperation between Mathworks and Maplesoft: Maple is offering to inject software into MATLAB and you are agreeing.
What is the difference? Mostly whether there is official support available or not. And there are differences in what happens if you refer to symengine()
The technology involved is that when installed, there is a maple.m file that does a small bit of work and then invokes a .mex file. The mex file internally makes a TCP connection to the Maple computation engine, and sends the computation engine a text string that is a copy of the command you passed into the maple() function; the TCP connection then makes accepts the text response from the Maple computation engine and returns it through the mex file; then the maple.m does any necessary work on the MATLAB side to clean up, and returns the result.
The question of what with(cominat) does when received by the Maple computation engine is really better addressed to the Maple documentation, or to the Mapleprimes forum. (There was a time when I would have been able to recite the details from memory, but that was some time ago.)

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