optimalSensor.assertFinalized
Throw error if an optimal sensor does not have essential data inputs
Syntax
Description
obj.assertFinalized
Checks that the optimal sensor object has estimates, uncertainties, and a metric. If not, throws an error.
obj.assertFinalized(actionName, header)
Customize error messages and IDs.
Input Arguments
actionName
string scalar
The name of the action being attempted as a gerund. Default is ‘implementing an optimal sensor’
header
string scalar
Header for thrown error IDs