필터 지우기
필터 지우기

Integrating C++ Code in MATLAB

조회 수: 2 (최근 30일)
ha ha
ha ha 2018년 10월 22일
편집: rolf harkes 2018년 12월 21일
How can I integrate C++ in Matlab?
Let's say, I wanna run the example "fdbscan_example.m" in Matlab. But, I need to Call the functions kdtree_build.m and kdtree_ball_query.m from the kd-trees (written in C++ language). How can i do that?
  댓글 수: 3
ha ha
ha ha 2018년 10월 22일
so, you mean: there are not exist of "stl_heap.h" file in the folder. Thus, I can't run the code "fdbscan_example.m" ?
rolf harkes
rolf harkes 2018년 12월 21일
편집: rolf harkes 2018년 12월 21일
The error message explains that it cannot find kdtree_build.cpp.
This file is in \kdtree-master\toolbox. So is the file kdtree_compile.m. If you run that it will compile everything. But compiling is probably not needed. If you look in that folder it already contains the compiled kdtree_build.mexw64.
The problem with the code in your screenshot is most likely that line 14 cannot execute since fdbscan cannot locate kdtree_build. Very similar to why it cannot compile. You must include that path using addpath('\kdtree-master\toolbox').
@Walter Robertson: The code from https://github.com/ataiya/kdtree/ compiles just fine on my system. No problems with heaps.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB Compiler에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by