Please enable JavaScript to view this site.

Knowledge Base

The script command assigns a value to a structure input field.

 

Supported Product: INTERCONNECT

 

Syntax

Description

output= setfield(input, field,value);

Assigns a ‘value’ to a structure ‘input’ ‘field’.

 

Example

>x=struct;

>x=setfield(x,'t',10);

>?x.t;

result: 

1

 

See Also

isfield, getfield

Copyright Lumerical Inc. | Privacy | Site Map