This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.

Call .NET Properties That Take an Argument

MATLAB® represents a property that takes an argument as a method. For example, the System.String class has two properties, Chars and Length. The Chars property gets the character at a specified character position in the System.String object. For example:

str = System.String('my new string');

 Display of System.String Methods

Notice that MATLAB displays the Chars property as a method.

The Chars method has the following signature.

Return TypeNameArguments
char scalar RetValChars(System.String this,
int32 scalar index)

To see the first character, type:

ans =
Was this topic helpful?