public class MLChar extends MLArray
attributes, dims, mtFLAG_COMPLEX, mtFLAG_GLOBAL, mtFLAG_LOGICAL, mtFLAG_TYPE, mxCELL_CLASS, mxCHAR_CLASS, mxDOUBLE_CLASS, mxFUNCTION_CLASS, mxINT16_CLASS, mxINT32_CLASS, mxINT64_CLASS, mxINT8_CLASS, mxOBJECT_CLASS, mxOPAQUE_CLASS, mxSINGLE_CLASS, mxSPARSE_CLASS, mxSTRUCT_CLASS, mxUINT16_CLASS, mxUINT32_CLASS, mxUINT64_CLASS, mxUINT8_CLASS, mxUNKNOWN_CLASS, name, type
Constructor and Description |
---|
MLChar(String name,
int[] dims,
int type,
int attributes) |
MLChar(String name,
String value)
Creates the 1 x
String.length() MLChar from the given
String. |
MLChar(String name,
String[] values)
|
MLChar(String name,
String[] values,
int maxlen)
Added method to allow initialization of a char array representing
an array of strings.
|
Modifier and Type | Method and Description |
---|---|
String |
contentToString() |
protected Character[] |
createArray(int m,
int n) |
boolean |
equals(Object o) |
Character[] |
exportChar() |
Character |
getChar(int m,
int n) |
String |
getString(int m)
Gets the m-th character matrix's row as
String . |
void |
set(String value)
|
void |
set(String value,
int idx)
Set one row, specifying the row.
|
void |
setChar(char ch,
int index) |
dispose, getDimensions, getFlags, getIndex, getM, getN, getName, getNameToByteArray, getNDimensions, getSize, getType, isCell, isChar, isComplex, isDouble, isEmpty, isFunctionObject, isInt16, isInt32, isInt64, isInt8, isLogical, isObject, isOpaque, isSingle, isSparse, isStruct, isUint16, isUint32, isUint64, isUint8, isUnknown, toString, typeToString
public MLChar(String name, String value)
String.length()
MLChar
from the given
String.name
- the MLArray
namevalue
- the Stringpublic MLChar(String name, String[] values, int maxlen)
name
- values
- maxlen
- public MLChar(String name, int[] dims, int type, int attributes)
protected Character[] createArray(int m, int n)
public void setChar(char ch, int index)
public void set(String value)
value
- the String valuepublic void set(String value, int idx)
value
- idx
- public Character getChar(int m, int n)
public Character[] exportChar()
public String getString(int m)
String
.m
- - row numberString
public String contentToString()
contentToString
in class MLArray
Copyright © 2015. All rights reserved.