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 Center および File ExchangeMATLAB Coder についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by