This is question for models for population growth where P(t) is the population as a function of time, and r is the reproductive rate.
    3 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
with the Malthusian model: 
dP dt = rP P(0) = P0,  where P(t) is the population as a function of time, and r is the reproductive rate. 
r = 0.693 and P0 = 2, 
the time interval is to be t ∈ [0, 10]
 How do I solve  using the “ode45” function in MATLAB, over the time interval [0, 10]. and plot the solution P(t) versus t and use  a “for” loop, and Euler’s method with a time-step h = 0.001 and plot the solution? 
2 comentarios
  Dyuman Joshi
      
      
 el 11 de Mzo. de 2023
				This looks like a HW question. Show what have you tried yet and ask a specific question.
If you need help starting, search for "ode45" documentation.
  Suman Sahu
    
 el 6 de Abr. de 2023
				This is a very similar question to one already answered. You can go through this answer to get an idea for how to proceed. How do i code linear Ordinary differentiation? - MATLAB Answers - MATLAB Central (mathworks.com)
Respuestas (0)
Ver también
Categorías
				Más información sobre Ordinary Differential Equations en Help Center y File Exchange.
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


