imat_result_doean/setComponents


Purpose

Set the components for Data On Elements At Nodes result.

Syntax

d=setComponents(d.node,element,comp,eltype)
d=setComponents(d,node,element,comp,eltype,compressed,data)

Description

SETCOMPONENTS sets the component vectors and optionally data for the Data At Nodes result object. The individual components can be in compressed or uncompressed format. If uncompressed, SETCOMPONENTS will attempt to compress them.

NODE contains the node IDs, which are stored once per node if the vectors are compressed.

ELEMENT contains the element IDs which are stored explicitly, once per node (compressed).

COMP stores the components just once. This means that to be compressed, all of the results in this object must have the same component list.

ELTYPE contains the element types, and must be the same length as ELEMENT.

COMPRESSED is an optional input logical specifying whether the component vectors are compressed. The default is FALSE.

DATA is an optional input vector containing the data values for this result.

Examples

>> d = setComponents(d,11:12,1:2,[1 2 3 4 5 6],[34;34],true,1:12);

See Also

imat_result_doean/getComponents