| MATLAB Compiler | ![]() |
mwString ToString() const
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 the // screen.
Arguments
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 command prompt.
| int HashCode() const | mwArray RowIndex() const | ![]() |
© 1994-2005 The MathWorks, Inc.