Why am I getting "unsupported MATLAB function call" error is Matlab Coder when converting ODE functions?

While trying to convert the following test file:
function [ result ] = coder_odetest(start, finish)
tspan = [start, finish];
odeset('AbsTol',1e-10,'RelTol',1e-10);
result = ode45(@f, tspan, 0.5);
end
function [x] = f(t,a)
x=a;
end
the Code Generation Readiness Tool says that odeset and ode45 are not supported for code generation. However, the documentation:
says that these functions are supported for code generation. What is the problem here?

 채택된 답변

The problem was that I was using Matlab 2013b. The ODE functions are only supported in Matlab 2014b.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Programming에 대해 자세히 알아보기

제품

질문:

2015년 1월 30일

답변:

2015년 2월 2일

Community Treasure Hunt

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

Start Hunting!

Translated by