MATLAB Answers

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

1 view (last 30 days)
Jimmy cho
Jimmy cho on 29 Nov 2020
Answered: John D'Errico on 29 Nov 2020
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!

  0 Comments

Sign in to comment.

Answers (2)

Image Analyst
Image Analyst on 29 Nov 2020
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.

  0 Comments

Sign in to comment.


John D'Errico
John D'Errico on 29 Nov 2020
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.

  0 Comments

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!

Translated by