diff --git a/modules/matlab/include/mxarray.hpp b/modules/matlab/include/mxarray.hpp index 681449a0e..a2c10199a 100644 --- a/modules/matlab/include/mxarray.hpp +++ b/modules/matlab/include/mxarray.hpp @@ -406,13 +406,12 @@ public: const Scalar* imag() const { return static_cast(mxGetData(ptr_)); } template - Scalar scalar() const { return static_cast(mxGetData(ptr_))[0]; } + Scalar scalar() const { return static_cast(mxGetData(ptr_))[0]; } std::string toString() const { conditionalError(isString(), "Attempted to convert non-string type to string"); std::string str(size()+1, '\0'); mxGetString(ptr_, const_cast(str.data()), str.size()); - mexPrintf("string: %s\n", str.c_str()); return str; }