Incompatibility between Simulink (rapid) accelerator and incomplete elliptic integrals

Hello. I am trying to use Simulink in order to numerically integrate a differential equation where in the right hand side there are expressions involving incomplete elliptic integrals of the first and second kind.
I particularly need Simulink to do this, so please do not answer if you suggest to use the ode-xx within the plain Matlab code.
The outcome: the compiler does not recognize these functions (neither the ones defined with 'mfun', neither the ones defined by using Igor Moiseev's functions -- downloaded from here: http://www.mathworks.com/matlabcentral/fileexchange/7123-elliptic-integrals-and-jacobis-zeta-function).
Does anyone have the same problem: accelerator compilation error due to the usage of the 1st and/or 2nd incomplete elliptic integrals? Does anyone know a code for incomplete elliptic integrals which fits into the compilation?
Thanks,
Vlad.

2 Comments

Are you able to do this in normal running mode in Simulink? How are you calling elliptic integral function from Simulink?
I have tried two methods: (1) use the mfun defined EllipticF etc -- redefined as standalone functions, and (2) use the elliptic integrals functions from Mathworks site, built by Igor Moiseev. I am calling them by using, for example, in the embedded function:
dx1 = El1i(x1,w),
where El1i is the 1st incomplete elliptic integral (needed to redefine, because I am using the Jacobi and not the Legendre notation).
It does not work... neither in normal or accelerator mode.

Sign in to comment.

Answers (0)

Asked:

on 20 Jun 2012

Community Treasure Hunt

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

Start Hunting!