ndi.validators.mustBeCellArrayOfNdiSessions
MUSTBECELLARRAYOFNDISESSIONS Validates that the input is a cell array of ndi.session.dir objects.
ndi.validators.mustBeCellArrayOfNdiSessions(VALUE)
This function is intended for use in an `arguments` block to validate
that a function input is a cell array where every element is an object of
the class `ndi.session.dir`. It throws an error if the validation fails.
Inputs:
value - The input value to be validated.
Throws:
An error with a specific identifier if the input is not a cell array
or if any element within the cell array is not an `ndi.session.dir` object.
Example:
% In a function definition:
arguments
sessionList (1,:) cell {ndi.validators.mustBeCellArrayOfNdiSessions(sessionList)}
end