MCPcopy Create free account
hub / github.com/davisking/dlib / call_matlab_for_real

Function call_matlab_for_real

dlib/matlab/mex_wrapper.cpp:3221–3234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3219 }
3220
3221 void call_matlab_for_real (
3222 int nlhs,
3223 mxArray* plhs[],
3224 int nrhs,
3225 mxArray* prhs[],
3226 const std::string& function_name
3227 )
3228 {
3229 int status = mexCallMATLAB(nlhs, plhs, nrhs, prhs, function_name.c_str());
3230 if (status)
3231 {
3232 throw dlib::error("Error, an exception was thrown when we tried to call the MATLAB function '" + function_name + "'.");
3233 }
3234 }
3235
3236// ----------------------------------------------------------------------------------------
3237// ----------------------------------------------------------------------------------------

Callers 1

call_matlabFunction · 0.85

Calls 1

errorClass · 0.85

Tested by

no test coverage detected