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[setvar] - set a numerical array or matrix in an open MATLAB(R) session
Calling Sequence
setvar(X, Y, 'globalvar')
Parameters
X
-
string naming the MATLAB variable
Y
MapleMatrix or MatlabMatrix
'globalvar'
optional parameter asserting that X is global
Description
The setvar command sets the MATLAB variable X to the value of the matrix Y.
The variable Y can be a MapleMatrix or a MatlabMatrix. The effect of Matlab[setvar] is to assign X=Y in the MATLAB memory space.
If you specify the 'globalvar' option, then the variable X in the MATLAB session is flagged as a global variable. Use this option for running MATLAB functions that use global variables.
Executing the setvar command returns a null.
Examples
Initialize a matrix in Maple and copy it to the MATLAB environment.
Assert that the matrix should be set as a global variable in the MATLAB environment.
The setvar command can also be used to assign another name to an existing matrix in the MATLAB environment. Notice that the second parameter is a string.
See Also
Matlab, Matlab[defined], Matlab[dimensions], Matlab[getvar], Matlab[size], Matlab[square], MatlabMatrix
Download Help Document