If I define a function in F.m file with the following:
function zp=F(x,z)zp=zeros(2,1);zp(1)=z(2);zp(2)=a*sqrt(1+z(2)^2)+kx;
That is a function I want to evaluate by using:
[x,z]=ode45('F',[x0,xf],[z10,z20]);
I'm not sure how I can pass a and kx to that function before it is evaluated.
Best Answer