type
- : type
name …¶ - : type
-q name …¶ - :
text =type("name", …)¶ Show what a name refers to and print its definition.
name may be a file, a function written in an m-file, a variable, an operator or a keyword. For an m-file or a plain file its text is shown; for a variable its value; for the other kinds a one-line description.
A header line stating the kind of thing name is comes first. The -q option leaves that line out.
Without an output the text is printed. With an output nothing is printed and a cell array of strings is returned, one cell per requested name.