I calculating an integral over a function that is defined in seperate m-file. My program looks like:
l_x = exp(-integral(@(t) mu_x(t),0,98));
res = a+b*exp(c*97)+(x-97)*0.001;
I expect lx(x)=lx(98) => res=a+b*exp(c*97)+(x-97)*0.001; to be calculated but instead res=a+b*exp(c*x) is done. I want to keep this if-function in lx.m, is there anyway I can do this? Also, what is going wrong??