?
Name: Question mark
Uses: Metaclass for MATLAB class
Description: The question mark retrieves the meta.class object for a particular class
name. The ? operator works only with a class name, not an object.
Examples
Retrieve the meta.class object for class inputParser:
?inputParser
More Information
• metaclass
''
Name: Single quotes
Uses: Character array constructor
Description: Use single quotes to create character vectors that have class char.
Examples
Create a character vector:
chr = 'Hello, world'
More Information
• “Text in String and Character Arrays” on page 6-2
""
Name: Double quotes
Uses: String constructor
Description: Use double quotes to create string scalars that have class string.
Examples
Create a string scalar:
S = "Hello, world"
More Information
• “Text in String and Character Arrays” on page 6-2
MATLAB Operators and Special Characters
2-13
Name: Question mark
Uses: Metaclass for MATLAB class
Description: The question mark retrieves the meta.class object for a particular class
name. The ? operator works only with a class name, not an object.
Examples
Retrieve the meta.class object for class inputParser:
?inputParser
More Information
• metaclass
''
Name: Single quotes
Uses: Character array constructor
Description: Use single quotes to create character vectors that have class char.
Examples
Create a character vector:
chr = 'Hello, world'
More Information
• “Text in String and Character Arrays” on page 6-2
""
Name: Double quotes
Uses: String constructor
Description: Use double quotes to create string scalars that have class string.
Examples
Create a string scalar:
S = "Hello, world"
More Information
• “Text in String and Character Arrays” on page 6-2
MATLAB Operators and Special Characters
2-13
