1

I want to run MATLAB 2015b algorithm on Android device through NDK. So I need a standalone c code from algorithm. I used Matlab Coder for this, But I get this error:

The function 'bwboundaries' is not supported for standalone code generation. See the documentation for coder.extrinsic to learn how you can use this function in simulation.`
I used this function in this way:

[B,L]=bwboundaries(h1);

the h1 is an 280*500 logical array which comes from a Black & White image. I searched and found this list: Functions and Objects Supported for C and C++ Code Generation
As we see there the bwboundaries declared in the list:

bwboundaries :

The conn and options arguments must be compile-time constants and the return value A can only be a full matrix, not a sparse matrix.

If you choose the generic MATLAB Host Computer target platform, generated code uses a precompiled, platform-specific shared library.

MATLAB Function Block support: No.

I don't understand it!! How should I use this function to have its c code? OR Is there any function to use instead?

I see this SO questions which didn't help me:
q1 q2 q3

6
  • What version of MATLAB? The online documentation only ever refers to the most recent version. Check the documentation archives for your specific version Commented Mar 30, 2016 at 11:39
  • @ Suever sorry! My version is 2015b. Commented Mar 30, 2016 at 12:28
  • 1
    If you had clicked on the link I provided above you would see that it is not supported in your version of MATLAB Commented Mar 30, 2016 at 13:02
  • which version support it? Commented Mar 31, 2016 at 10:20
  • Version r2016a. The current version corresponding to the documentation you linked Commented Mar 31, 2016 at 11:01

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.