This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this 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 =