MATLAB APPLICATION DEPLOYMENT - WEB EXAMPLE GUIDE Betriebsanweisung Seite 162

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 274
  • Inhaltsverzeichnis
  • FEHLERBEHEBUNG
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 161
5 Controlling Code Generation
5-36
Default Width
Not specifying a page width formatting option uses the default of 80. Using
mcc -xg gasket
generates this code segment:
012345678
12345678901234567890123456789012345678901234567890123456789012345678901234567890
for (mclForStart(
&viter__, mlfScalar(1), mclVa(numPoints, "numPoints"), NULL);
mclForNext(&viter__, &i);
) {
/*
* startPoint = floor((corners(theRand(i),:)+startPoint)/2);
*/
mclMline(21);
mlfAssign(
&startPoint,
mlfFloor(
mclMrdivide(
mclPlus(
mlfIndexRef(
mclVv(corners, "corners"),
"(?,?)",
mlfIndexRef(
mclVv(theRand, "theRand"), "(?)", mclVv(i, "i")),
mlfCreateColonIndex()),
mclVv(startPoint, "startPoint")),
mlfScalar(2))));
.
.
.
Page Width = 40
This example specifies a page width of 40:
mcc -xg -F page-width:40 gasket
The segment of generated code is
012345678
12345678901234567890123456789012345678901234567890123456789012345678901234567890
mclMline(13);
mlfAssign(
&theImage,
mlfZeros(
mlfScalar(1000),
mlfScalar(1000),
Seitenansicht 161
1 2 ... 157 158 159 160 161 162 163 164 165 166 167 ... 273 274

Kommentare zu diesen Handbüchern

Keine Kommentare