optimalSensor.optimalSensor

Create a new optimalSensor object


Syntax



Description

obj = optimalSensor

Initializes a new optimalSensor object. The new object does not have a prior, metric, or estimates.

obj = optimalSensor(label)
obj = optimalSensor(labels)

Also applies a label to the optimal sensor object. If unset, the label is set to an empty string. If labels is a string array, returns an array of optimal sensor objects and applies the corresponding label to each individual optimal sensor.

obj = optimalSensor(size)
obj = optimalSensor(size, labels)

Initializes an array of optimal sensor objects of the indicated size. Optionally also applies a label to each object in the array. If applying labels, the size of the “labels” array must match the requested size of the optimal sensor array.


Input Arguments

labels

string array | cellstring array | char row vector
Labels for the elements of an optimalSensor array. If the only input, the output array will have the same size as labels. If combined with the “size input, must be the size of the requested array.

size

row vector, positive integers
Indicates the size of the requested array of optimalSensor objects. Must have at least 2 elements, and all elements must be non-negative integers.

Output Arguments

obj

scalar optimalSensor object | optimalSensor array
A new optimalSensor object or an array of optimalSensor objects.