Converting MATLAB code in C

2 vues (au cours des 30 derniers jours)
Muhammad Hamza Altaf
Muhammad Hamza Altaf le 18 Déc 2018
Commenté : Gareth le 18 Déc 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 commentaire
Gareth
Gareth le 18 Déc 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.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Setup and Configuration dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by