MEX-based class constructors?
显示 更早的评论
Hi, I'm wondering if it's possible to have a class constructor be fully written in MEX? My first thought was to call the "class" function via mexCallMATLAB, and returning the resulting mxArray, however, I see in the documentation [1] that "Outputs of mexCallMATLAB have temporary scope and are automatically destroyed at the end of the MEX function call", so I don't believe this works.
Any ideas?
Thanks
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Write C Functions Callable from MATLAB (MEX Files) 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!