Borrar filtros
Borrar filtros

How can I handle global variables in matlab coder?

6 visualizaciones (últimos 30 días)
Carlos Pereira
Carlos Pereira el 9 de Mayo de 2016
Respondida: Walter Roberson el 9 de Mayo de 2016
Dear friends, I need to convert a m file to mex file using matlab coder. On this m file I had some global variables (I have a initial value and, solving any equations, I update this value) I need to use a file for save it or you know a better way? Tanks!!

Respuestas (1)

Walter Roberson
Walter Roberson el 9 de Mayo de 2016
The below has some fixed-point specific points in it, but I have often found the fixed-point documentation to have a lot of useful information about code generation; see for example the discussion about when the variable needs to be synchronized:

Categorías

Más información sobre MATLAB Algorithm Acceleration en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by