필터 지우기
필터 지우기

throw error from a matlab compiled dll

조회 수: 4 (최근 30일)
Kaushik
Kaushik 2013년 3월 11일
i have a matlab function say f.m which i have compilled to a c++ dll using mcc. i want to throw error from inside f.m. question is how do i catch it from the c++ code.
if function f(arg1,arg2) takes in a two arguments. the c++ signature is something like f(int argout, mwArray output, mwArray arg1, mwArray arg2). mwArray are defined within the matlab include files. mwArray output is where i get the output which can be defined as something like mwArray output(row,col,mxDOUBLE_CLASS).
i do not see how i can get back the thrown error in mwArray output which is defined as double.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Deploy to C++ Applications Using mwArray API (C++03)에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by