CopyCharArrayFromString

Declaration: TMatlab5WorkSpace.CopyCharArrayFromString (MatIdx: integer; Content: string): integer;
The method CopyCharArrayFromString copies the string Content into a one-dimensional character array of the MatLab 5 workspace. The parameter MatIdx specifies the index of the destination array (valid range: 1...NrOfCharArrays).

The function returns one of the following error codes:

 0 ... everything OK, Content has been copied
-1 ... Content must not be empty
-2 ... MatIDx is out of bounds