필터 지우기
필터 지우기

Error while generating code using Matlab Coder for ode45.

조회 수: 2 (최근 30일)
Dileep Krishnan
Dileep Krishnan 2017년 11월 17일
답변: Walter Roberson 2017년 11월 17일
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
Walter Roberson
Walter Roberson 2017년 11월 17일
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 2017년 11월 17일
Hi, I am using MATLAB 2015a.

댓글을 달려면 로그인하십시오.

채택된 답변

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB Coder에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by