Eswin Paul T
- 6
- 0
I have a first order bernoullis differential equation. I need to solve this in matlab. Can anyone help me?
The discussion revolves around solving a first-order Bernoulli differential equation using MATLAB. Participants seek assistance with the context of the problem, the specific equation, and the numerical methods applicable for solving it.
Participants generally agree on the need for more specific information regarding the differential equation to provide effective help. However, there is no consensus on the exact approach to take without further details.
Participants have not provided the specific differential equation or initial conditions, which limits the ability to offer precise guidance. The discussion also reflects varying levels of familiarity with MATLAB and the methods for solving differential equations.
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