ml_check_cell_vector
Checks input vectors and sets default values.
Contents
Syntax
opts = ml_check_cell_vector(opts, name, numSys, orders, default)
Description
Checks for the field name of a struct to be a vector or one dimensional cell array of vectors and checks those vectors to fit with the dimensions in orders. If there are less vectors than numSys, the rest is filled up by using the default function.
Input
- opts - struct, having its field checked
- name - character array, name of the field to be checked
- numSys - positive integer, number of underlying systems
- orders - cell array, containing the orders of the underlying systems
- default - function handle, accepting two input arguments, both nonnegative integers
Output
- opts - structure, copy of the input with the field set and put into a cell array
See Also