MATLAB BUILDER JA 2 Guía de usuario Pagina 109

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 292
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 108
Guidelines for Working with MWArray Classes
Here, each cell is initialized with a Java a rray, and default conversion rules
are used to create the MATLAB array for each cell.
Constructing an MWCellArray Containing Complex Arrays. The next
example creates a helper function that constructs a cell array containing a list
of complex
double arrays. The real and imaginary parts of each cell are passed
in the
re and im arrays, respectively. The new cell array has dimensions
1-by-
N,whereN is the leng th of the inp ut arrays, which must be the same.
MWCellArray createNumericCell(Object[] re, Object[] im)
throws MWException
{
if (re == null || im == null)
throw new MWException("Invalid input");
if (re.length != im.length)
throw new MWException(
"Input arrays must be the same length");
MWCellArray a = null;
MWNumericArray x = null;
try
{
a = new MWCellArray(1, re.length);
for (int k = 1; k <= re.length; k++)
{
x = new MWNumericArray(re[k-1], im[k-1],
MWClassID.DOUBLE);
a.set(k, x);
x.dispose();
x = null;
}
return a;
}
catch (Exception e)
{
if (a != null)
a.dispose();
4-33
Vista de pagina 108
1 2 ... 104 105 106 107 108 109 110 111 112 113 114 ... 291 292

Comentarios a estos manuales

Sin comentarios

AUDAC Subwoofers manuels d'utilisation

La liste de AUDAC Subwoofers produits contient 2 manuels d'utilisation pour les modèles 1. Tous les guides d'utilisation en format pdf peuvent être téléchargés ou consultés en ligne.

Cliquez sur un alphabet ci-dessous pour faire défiler la liste complète des modèles commençant par cette lettre

Modèles Type de document
SX408A
Manuel de l'utilisateur   AUDAC SX408A User manual, 16 pages
Manuel de l'utilisateur   Bedienungs- und Installationsanleitung AUDAC, 16 pages