understanding and converting two matlab function to c++/c code

조회 수: 2 (최근 30일)
Jimmy cho
Jimmy cho 2020년 11월 29일
답변: John D'Errico 2020년 11월 29일
Hi guys
could anyone please tell me what those three attached matlab functions does? and how I can implement them in c++ ? I mean to implement the same function concept to c++.
ismember.
find .
de2bi(argument1, argument2, 'left-msb').
thanks alot!

답변 (2개)

Image Analyst
Image Analyst 2020년 11월 29일
If you search on the help for those functions, you'll find a description of what they do.
If you have the MATLAB Coder toolbox, you can convert your program to C. I don't have that toolbox so I can't help you with that.

John D'Errico
John D'Errico 2020년 11월 29일
You could read the documentation for thse functions. In there, you will find a complete explanation of what those codes do. The explanation you will find there will be complete, better and more accurate than what anywone would write here quickly.
help find
help ismember
help de2bi
Or, better yet,
doc find
doc ismember
doc de2bi
And if you cannot access MATLAB, then just read the online documentation. Here are the respective links:
How you should implement them in another language is surely your choice. We won't write the code for you.

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by