MATLAB APPLICATION DEPLOYMENT - WEB EXAMPLE GUIDE Betriebsanweisung Seite 319

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 354
  • Inhaltsverzeichnis
  • FEHLERBEHEBUNG
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 318
mwString ToString() const
Purpose Return string representation of underlying array
C++
Syntax
#include <stdio.h>
#include "mclcppclass. h"
mwArray a(1, 1, mxDOUBLE_CLASS, mxCOMPLEX );
a.Real() = 1.0;
a.Imag() = 2.0;
printf("%s\n", (const char*)(a .ToString()));// Should print
// "1 + 2i" on
// screen.
Arguments None
Return
Value
An mwString containing the string representation of the array.
Description This method returns a string representation of the underlying array.
The string returned is the same string that is returned by typing a
variable’s name at the MATLAB com mand prompt.
C-65
Seitenansicht 318
1 2 ... 314 315 316 317 318 319 320 321 322 323 324 ... 353 354

Kommentare zu diesen Handbüchern

Keine Kommentare