Template Function amici::writeMatlabField1

Function Documentation

template<typename T>
void amici::writeMatlabField1(mxArray *matlabStruct, const char *fieldName, gsl::span<const T> const &fieldData, const int dim0)

initialize vector and attach to the field

Parameters
  • matlabStruct: pointer of the field to which the vector will be attached

  • fieldName: Name of the field to which the vector will be attached

  • fieldData: Data which will be stored in the field

  • dim0: Number of elements in the vector