Effacer les filtres
Effacer les filtres

Error while generating code using Matlab Coder for ode45.

2 vues (au cours des 30 derniers jours)
Dileep Krishnan
Dileep Krishnan le 17 Nov 2017
I am trying to generate C code using Matlab Coder for my function which uses ode45. I am getting the following error.
??? Undefined function or variable 'chunk'. The first assignment to a local variable determines its class.
Error in ==> ode2345 Line: 454 Column: 38
Code generation failed: View Error Report
Error using codegen (line 146)
How to resolve the error? Thanks a lot in advance!
  2 commentaires
Walter Roberson
Walter Roberson le 17 Nov 2017
Hmmm, there is no obvious way that could happen in the code when I look at it in R2017b. On the other hand, the line number that uses chunk is 451 rather than 454, which suggests that you might be using a different release?
For my future reference, ode2345 is toolbox/eml/lib/matlab/funfun/private/ode2345.m
Dileep Krishnan
Dileep Krishnan le 17 Nov 2017
Hi, I am using MATLAB 2015a.

Connectez-vous pour commenter.

Réponse acceptée

Walter Roberson
Walter Roberson le 17 Nov 2017
This is a known bug; see https://www.mathworks.com/support/bugreports/1240166 for the solution.

Plus de réponses (0)

Catégories

En savoir plus sur MATLAB Coder dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by