pwGetFieldtype


 type = pwGetFieldtype(class, fieldname)

 Returns the type of a field for a PottersWheel object class.

 

Arguments for pwGetFieldtype

 class      a, c, k, o, r, s, u, v, x, y, z

 fieldname  Any field belonging to the specified class as described in
            pwAddA, pwAddR, pwAddK, pwAddX, pwAddV, pwAddO, e.g.
            class a: lhs, rhs
            class c: reactants, products, modifiers, parameters
            class k: ID, type, value, minValue, maxValue
            class x: ID, type, startValue, minValue, maxValue
            class v: ID, rhs
            class o: lhs, rhs
            class u: ID, uType

 type       Type of the specified field, given as one of the following strings:
            stringCellArray, char, scalar, numericArray, numericCellArray, struct

 

Description

 This function is useful to apply reflection-like programming strategies.

 

Example

 type = pwGetFieldtype('k', 'value'); % Returns: 'scalar'

See also

pwAddR
pwAddK
pwAddX
pwAddV
pwAddO
pwGetClassFields