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 | struct2hash (in object, in exkeys, in unique, in onlyfull) |
Return a hashmap cell array containing all field names and field values of input scalar MATLAB object as (key, val) stored sequentially in the cell array.More... | |
function struct2hash | ( | in | object, |
in | exkeys, | ||
in | unique, | ||
in | onlyfull | ||
) |
Return a hashmap
cell array containing all field names and field values of input scalar MATLAB object
as (key, val)
stored sequentially in the cell array.
[in] | object | : The input scalar MATLAB struct whose field names and values are to be converted to a hashmap cell. |
[in] | exkeys | : The input vector of MATLAB strings containing a list of field names of the input object that must be excluded from the output hashmap cell.(optional, default = [] ) |
[in] | unique | : The input scalar MATLAB logical. If true , only the first instance of occurrence of any field name is added to the output cell array without considering case-sensitivity of the field names.(optional, default = false ) |
[in] | onlyfull | : The input scalar MATLAB logical. If true , only the structure field names field values are nonempty (as assessed by the MATLAB intrinsic isempty() ) are included in the output hashmap .(optional, default = false ) |
hashmap
: The output cell array of even number of elements containing the field names and values of the input object
as (key, val)
pairs stored sequentially as the cell elements.
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.