- #1
oby7842
- 11
- 0
I have a implicit differential equation Re(u*ux-u^2)=0 ( It was larger equation but i simplified it here). I wrote down my function in m.file as follows:
function Z=fun_imp(x,u,ux);
Re=25;
Z=0;
Z=Re*(u*ux-2*u);
Before going to solving differential equation to find out consistent initial value i write following prog:
clc;
clear;
x0=0;
u0=-1.095;
ux0=0;
[u0,ux0]=decic('fun_imp',x0,u0,1,ux0,0);
but I am geting following error:
? Error using ==> initial
Not enough input arguments.
I will appreciate if anyone ans my question.
regards,
Omar
function Z=fun_imp(x,u,ux);
Re=25;
Z=0;
Z=Re*(u*ux-2*u);
Before going to solving differential equation to find out consistent initial value i write following prog:
clc;
clear;
x0=0;
u0=-1.095;
ux0=0;
[u0,ux0]=decic('fun_imp',x0,u0,1,ux0,0);
but I am geting following error:
? Error using ==> initial
Not enough input arguments.
I will appreciate if anyone ans my question.
regards,
Omar