I have been solving this two coupled ODE equations using ode45… Please find the attached files….
Even after defining the variable 'P'…,
I am getting an error
Undefined
function or
variable 'P'.
Error in
pair1 (line
5)
dy(1)=(P*(b^2)*v*sigma_e*((y(2)^2*sigma_e).^(-1/3))/(M^2))*exp(-Q/K*T)*sinh((sigma_e)/((M*K*T)*(b^3))*(Q/((y(2)).^2*sigma_e)).^(1/3));
Error in
@(t,y)pair1(t,y)
Error in
odearguments
(line 87)
f0 =
feval(ode,t0,y0,args{:});
% ODE15I sets
args{1} to
yp0.
Error in
ode45 (line
113)
[neq, tspan,
ntspan, next,
t0, tfinal,
tdir, y0, f0,
odeArgs,
odeFcn, …
Error in
ruban (line
13)
[t,y]=ode45(@(t,y)pair1(t,y),tspan,initial_conditions)
%function
call
Please help me to sort out this problem by modifying the code or providing the hints…
Any help will be appreciated
Best Answer