I want to solve the integral of expm(A*s)
between a
and b+tau
, where tau
is time-varying delay.
I created in Simulink a Matlab Function block with tau
as an input, like this:
function y = compute_int(u, tau)
syms s
gamma=double(int(expm(A*s),s,a,b+tau));
B = [gamma; 1]
y = B*u;
with A
, a
and b
being defined before. There is a problem though: the function syms
is not supported by simulink.
Any ideas to how to handle the integral? I tried with
coder.extrinsic('syms');
but it doesn't work.
thanks for any suggestions!!