When running cpp file in matlab, there is a problem of calling mex in error, how to solve it
1 次查看(过去 30 天)
显示 更早的评论
回答(1 个)
Shreeya
2024-7-3
编辑:Shreeya
2024-7-3
Hey
The error code in the output is C3861. This error code suggests that an identifier is missing. You can start by looking if the appropriate headers are declared in the files. I'm also linking the MS documentation of this error code if the suggested solution does not resolve the issue:
You can also have a look at this answer: https://www.mathworks.com/matlabcentral/answers/601660-mex-error-c3861-mxgetdoubles-cannot-find-the-identifier-mxgetuint8s-cannot-find-the-identif
The answer in this link suggests that certain functions require a specific MATLAB version as a flag.
Also have a look at the documentation of mxGetPtr: https://www.mathworks.com/help/matlab/apiref/mxgetpr.html
Looks like this function is depreciated, updating the code might help too
Let me know if this resolves the problem!
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Web Services 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!