Template Function amici::writeMatlabField2¶
Defined in File returndata_matlab.h
Function Documentation¶
-
template<typename
T
>
voidamici
::
writeMatlabField2
(mxArray *matlabStruct, const char *fieldName, std::vector<T> const &fieldData, int dim0, int dim1, std::vector<int> perm)¶ initialize matrix, attach to the field and write data
- Parameters
matlabStruct
: Pointer to the matlab structurefieldName
: Name of the field to which the tensor will be attachedfieldData
: Data which will be stored in the fielddim0
: Number of rows in the tensordim1
: Number of columns in the tensorperm
: reordering of dimensions (i.e., transposition)