Code Generation Report prevents Mex generation

1 visualización (últimos 30 días)
David Morin
David Morin el 27 de Feb. de 2019
Comentada: Ryan Livingston el 2 de Mzo. de 2019
Hello everyone,
I have an issue with Matlab Coder. I can't generate a Mex file when a generation report is produced. For example with the testCodegen function below :
function y = testCodegen(x)
y = x + 2;
end
I have no error when building a Mex function without generating a report :
codegen -args {1} testCodegen
However, the following error arrive when a report is produced :
codegen -report -args {1} testCodegen
Compilation failed.
Error: Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters, or other syntax error. To
construct matrices, use brackets instead of parentheses.
Use help codegen for more information on using this command.
Error using codegen
The situation is the same when using the Coder App. This is really bothering me because I can't locate errors while building more complex Mex files! I didn't get this error a few weeks ago, I can't figure out where it comes from.
Does anyone has an idea?
  1 comentario
Ryan Livingston
Ryan Livingston el 2 de Mzo. de 2019
This sounds like an installation problem. I suggest getting in touch with MathWorks Techincal Support: https://www.mathworks.com/support/contact_us.html to help diagnose the issue.
As a start I'd try:
restoredefaultpath
rehash toolboxcache
and then try codegen again. Beyond that, definitely suggest Technical Support.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

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

Productos


Versión

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by