ParaMonte MATLAB 3.0.0
Parallel Monte Carlo and Machine Learning Library
See the latest version documentation. |
Go to the source code of this file.
Functions | |
function | len (in obj) |
Return a scalar MATLAB whole-number containing the length of the input scalar or vector object. More... | |
function len | ( | in | obj | ) |
Return a scalar MATLAB whole-number containing the length of the input scalar or vector object.
The following rules apply to computing the length:
If the input obj
is a scalar object of type char
or string
and empty, then the output val
is 0
.
If the input obj
is a scalar object of type char
or string
and non-empty, then the output val
is 1
.
If the input obj
is a scalar object of type other than char
or string
, then the output val
is 1
. This is similar to the behavior of the MATLAB intrinsic length()
.
If the input obj
is a vector and empty, then the output val
is 0
. This is similar to the behavior of the MATLAB intrinsic length()
.
obj
is a vector and non-empty, then the output val
is the vector length as returned by length(obj)
minus the number of empty elements. [in] | obj | : The input scalar or vector object whose length is to returned according to the rules above. |
val
: The output scalar MATLAB whole-number representing the length of the input object.
Possible calling interfaces ⛓
Example usage ⛓
Final Remarks ⛓
If you believe this algorithm or its documentation can be improved, we appreciate your contribution and help to edit this page's documentation and source file on GitHub.
For details on the naming abbreviations, see this page.
For details on the naming conventions, see this page.
This software is distributed under the MIT license with additional terms outlined below.
This software is available to the public under a highly permissive license.
Help us justify its continued development and maintenance by acknowledging its benefit to society, distributing it, and contributing to it.