gettypeinfo - Information about existing type definition in type object

Syntax

gettypeinfo(cc.type,'typename')

Description

gettypeinfo(cc.type,'typename') returns all the available information about the user-defined data type typename in the type object cc.type.

Examples

Here is what happens when you use gettypeinfo to learn about a type in the type class:

cc.type


Defined types    : Void, Float, Double, Long, Int, Short, Char, 
mynewtypedef 

gettypeinfo(cc.type,'Double')

ans = 

      type: 'double'
      size: 1
    uclass: 'numeric'

One important note — type names are case sensitive. double and Double are not the same.

See Also

add, clear

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS
 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS