Main Content

fixNode

Fix or free node in factor graph

Description

fixNode(graph,nodeID) fixes the node at the specified ID, nodeID during optimization.

fixNode(graph,nodeID,flag) specifies whether to fix or free the node at the specified ID, nodeID.

Input Arguments

collapse all

Factor graph containing nodes to fix, specified as a factorGraph object.

ID of the node to fix or free within the factor graph, specified as a nonnegative integer.

New fix status of the node, specified as a logical 1 (true) or 0 (false). If specified as true, the function fixes the node. If specified as true, the function frees the node during optimization.

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.

Version History

Introduced in R2022a

See Also

Objects