简体   繁体   English

MATLAB 内置功能到 c++

[英]MATLAB built functions to c++

Is it possible to know the code behind a built-in function in MATLAB so that it can be converted (manually or automatically) to C/C++?是否可以知道 MATLAB 中内置 function 背后的代码,以便可以(手动或自动)将其转换为 C/C++? This is because I was using findpeaks with 'MinPeakProminence' in MATLAB but didn't know how to build a similar function in C++.这是因为我在 MATLAB 中使用了带有“MinPeakProminence”的 findpeaks,但不知道如何在 C++ 中构建类似的 function。

Someone seems to have already done this, maybe they used the same methods as described in the matlab docs (or Coder)?似乎有人已经这样做了,也许他们使用了与 matlab 文档(或 Coder)中描述的相同的方法?

https://github.com/E24056679-NCKU/MATLAB-findpeaks-in-C- https://github.com/E24056679-NCKU/MATLAB-findpeaks-in-C-

Another possible place to look would be Octave's implementation -- not sure if it's built-in or a script.另一个可能的地方是 Octave 的实现——不确定它是内置的还是脚本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM