Name

fieldnames — returns the tlist, mlist or struct field names

Calling Sequence

f=fieldnames(x)

Parameters

x

a tlist or an mlist or a struct.

f

column vector of strings

Description

This function returns the tlist, mlist, cell or struct field names.

Examples

 
clear t;
t.a=1;
t.b=2;
fieldnames(t)
fieldnames(1/%s)
fieldnames(tf2ss(1/%s))
 

See Also

extraction , getfield , tlist , mlist , struct