MATLAB EMBEDDED IDE LINK 4 - FOR USE WITH ALTIUM TASKING Spécifications Page 61

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 67
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 60
Appendix A
A-16
PYTHON
8 MATLAB VIA ACTIVEX WRAPPER CLASS
A Python module has been included which declar
es the class
Matlab,
wrapping Matlab instantiation and execution.
You can test the Matlab connection by running the module as a Python
script.
8.1 CLASS MATLAB METHODS
GetSingleton(variablename, workspace = 'base')
Read a single value from a Matlab variable.
PutSingleton(variablename, value, workspace = 'base')
Write a single value to a Matlab variable.
GetMatrix(matrixname, columns = 1, rows = 1, workspace = 'base')
Get
a r
eal matrix.
The number of columns and rows of the matrix must be specified. Always
returns a matrix, even if it has one row. The value is a list of lists, with
each sub-list being one row.
GetMatrixOfSameSize(matrixname, dummy_matrix, workspace = 'base')
Returns
a real matrix, as
GetMatrix, but instead of specifying the
dimensions, pass a matrix with the expected dimensions. Its value will not
be changed.
Always r
eturns a matrix, even if it has one row.
PutMatrix(matrixname, real, workspace = 'base')
Put
a r
eal matrix. The value is a list of lists, with each sub-list being one
row.
GetComplexMatrix(matrixname, columns = 1, rows = 1, workspace =
'base')
Get both the real as the imaginary matrices. The number of columns and
rows of the matrices must be specified.
Vue de la page 60
1 2 ... 56 57 58 59 60 61 62 63 64 65 66 67

Commentaires sur ces manuels

Pas de commentaire