MATLAB COMPILER RELEASE NOTES Guide de l'utilisateur Page 147

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 264
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 146
Formatting Compiler-Generated Code
5-31
&corners,
mlfDoubleMatrix(
3,
2,
_array0_,
(double *)NULL));
/*
* startPoint = [866 1];
*/
mlfAssign(
&startPoint,
mlfDoubleMatrix(
1,
2,
_array1_,
(double *)NULL));
/*
* theRand = rand(numPoints,1);
*/
mlfAssign(
&theRand,
mlfNRand(
1,
mclVa(numPoints, "numPoints"),
mlfScalar(1),
NULL));
/*
* theRand = ceil(theRand*3);
*/
mlfAssign(
&theRand,
mlfCeil(
mclMtimes(
mclVv(theRand, "theRand"),
mlfScalar(3))));
.
.
.
Setting Indentation Spacing
Use the statement-indent:n option to set the indentation of all statements to
n, an integer. The default is 4 spaces of indentation. To set the indentation for
expressions, use
expression-indent:n. This sets the number of spaces of
indentation to
n, an integer, and defaults to two spaces of indentation.
Vue de la page 146
1 2 ... 142 143 144 145 146 147 148 149 150 151 152 ... 263 264

Commentaires sur ces manuels

Pas de commentaire