Converting MATLAB code in C

2 Ansichten (letzte 30 Tage)
Muhammad Hamza Altaf
Muhammad Hamza Altaf am 18 Dez. 2018
Kommentiert: Gareth am 18 Dez. 2018
Hello,
I am new to MATLAB, i also have a project which in which i have a MATLAB code and which i want to convert into C so that i can use it on ANDROID. but while converting the code, it is givien me errors so the converting is not fully completed.
If i run that MATLAB code on MATLAB, it works perfectly. So what can i do over here? can you kindly can anyone guide me with it...!!
  1 Kommentar
Gareth
Gareth am 18 Dez. 2018
Hi Muhammad,
There are a couple of things:
  • can you share the MATLAB code and the errors?
  • Are you using MATLAB Coder? (are you going throught the step by step tutorial?)
  • which release are you using?
All of the above are important for us to help as:
  • MATLAB coder extends its capabilities every release (more and more functions just work)
  • the tutorial is a good way to get started, *typically people start with simple functions and multiply 2 matrixes and get the workflow then add complexity from MATLAB code
  • There are certain MATLAB functions that are not supported an you need to investigate how to get around them (e.g. try catch are not supported, but if you remove them then it can work under certain cases
BTW there is a very nice video on taking MATLAB Code and putting it on Android devices that could help you get started.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Setup and Configuration finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by