Maple Professionel
Maple Académique
Maple Edition Étudiant
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professionel
MapleSim Académique
Maple T.A. - Suite d'examens de classement
Maple T.A. MAA Placement Test Suite
Möbius - Didacticiels de mathématiques en ligne
Machine Design / Industrial Automation
Aéronautique
Ingénierie des véhicules
Robotics
Energie
System Simulation and Analysis
Model development for HIL
Modélisation du procédé pour la conception de systèmes de contrôle
Robotics/Motion Control/Mechatronics
Other Application Areas
Enseignement des mathématiques
Enseignement de l’ingénierie
Enseignement secondaire et supérieur (CPGE, BTS)
Tests et évaluations
Etudiants
Modélisation financière
Recherche opérationnelle
Calcul haute performance
Physique
Webinaires en direct
Webinaires enregistrés
Agenda des évènements
Forum MaplePrimes
Blog Maplesoft
Membres Maplesoft
Maple Ambassador Program
MapleCloud
Livres blancs techniques
Bulletin électronique
Livres Maple
Math Matters
Portail des applications
Galerie de modèles MapleSim
Cas d'Etudes Utilisateur
Exploring Engineering Fundamentals
Concepts d’enseignement avec Maple
Centre d’accueil utilisateur Maplesoft
Centre de ressources pour enseignants
Centre d’assistance aux étudiants
Matlab[evalM] - evaluate a MATLAB(R) expression using MATLAB
Calling Sequence
evalM('string')
Parameters
string
-
string defining the operation in MATLAB
Description
The evalM command uses MATLAB to evaluate an expression constructed with MATLAB syntax.
Matlab[evalM] does not return the result of the evaluation. To capture the result, preface the expression with a MATLAB variable name. For example, to multiply matrices A and B, use the command Matlab[evalM]("C=A*B"), followed by Matlab[getvar]("C"). Ensure that A and B are already defined in MATLAB.
If an error occurs during the evaluation of the expression, Maple returns a generic error message. Since Maple cannot obtain strings from MATLAB, there is no way for Maple to determine the specific cause of the error. If you want to determine the cause of the error, switch to an open MATLAB window (if possible) and enter the LASTERR command.
Executing the evalM command returns a null.
Examples
These expressions can be manipulated and operated on in MATLAB.
[-0.161676646706586879 , -0.401197604790419215 , -0.155688622754491135]
[ ]
[0.245508982035928164 , 0.461077844311377216 , -0.0598802395209581256]
[0.598802395209580895 , 0.856287425149700686 , 1.31736526946107802]
See Also
eval, Matlab, Matlab[defined], Matlab[dimensions], Matlab[getvar], Matlab[setvar], Matlab[size], Matlab[square], MatlabMatrix
Download Help Document