Eswin Paul T
- 6
- 0
I have a first order bernoullis differential equation. I need to solve this in matlab. Can anyone help me?
What is the context of the question? Is this for schoolwork?Eswin Paul T said:I have a first order bernoullis differential equation. I need to solve this in matlab. Can anyone help me?
I am working on lidars to retrieve extinction coefficient. I have to solve the lidar equation using Klett method which involves reducing the lidar eqn to a first order bernoullis equation.berkeman said:What is the context of the question? Is this for schoolwork?
What is your level of experience with MATLAB? What is the DE (and the initial conditions), and which numerical method do you have in mind for solving it?
y0 = 0.1;
tspan = [0.5 20];
[x,y] = ode45(@bernoulli1, tspan, y0);
plot(x,y)
function dydx = bernoulli1(x,y)
% This function codes the equations and
% is called at each time step by ode45 to
% advance the integration.
dydx = x*y^2 - y*(1/x);
end