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 | copy (in from, in to, in field, in exclude) |
Copy the contents of the struct/object from to the struct/object to recursively and without destroying the existing components in to .More... | |
function copy | ( | in | from, |
in | to, | ||
in | field, | ||
in | exclude | ||
) |
Copy the contents of the struct/object from
to the struct/object to
recursively and without destroying the existing components in to
.
[in] | from | : The input scalar MATLAB struct whose (select) components must be copy/merged with the components of the input struct to . |
[in] | to | : The input scalar MATLAB struct to which the components of from struct must be copied.(optional, default = struct() ) |
[in] | field | : The input vector of MATLAB strings each element of which is a field or property name in from whose value has to be copied to the struct to .(optional, default = fieldnames(from) or properties(from) ) |
[in] | exclude | : The input vector of MATLAB strings each element of which is a field or property name in from whose value has to be skipped and excluded from the copy to the struct to .(optional, default = [] ) |
tonew
: The output MATLAB struct containing the merger of the two input MATLAB structs.field
is common between from
and to
, the field value of from
will overwrite the corresponding field value of to
in the output tonew
.
Possible calling interfaces ⛓
field
and exclude
input arguments, then it is excluded.
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.