Consider the predator-prey models

Assignment Help MATLAB Programming
Reference no: EM13163611

The concepts covered in section13.6.3 for higher order differential equations can also be employed to solve system of related equations.   Consider the predator-prey models developed early part of the 20th century in which the number of predators and preys may be predicted using the pair of ODEs


                    dnprey/dt = anprey - bnpreynpredator  

                    dnpredator/dt = -cnpredator + dnpreynpredator

where n stands for number, a is the prey growth rate, c is the predator death rate, and b and d are coefficients representing the effects of prey-predator interactions. Given a = 1.2, b = 0.6, c = 0.8, and d = 0.3, create a function similar to "twofuns" on page 526. Then use ODE45 to solve for time span of 0 to 30 given the initial number of prey is 2 and the initial number of predators is 1. You should produce a plot showing the number of prey and predators as a function of time.

 

Reference no: EM13163611

Questions Cloud

Consider a 2-dimensional mesh : Consider a 2-dimensional mesh with n^2 nodes. The shortest distance that a message travels in the mesh is 1 link; the longest distance is 2(n-1) link
Convert meters to feet and inches. : 1. Write a program that can be used to convert meters to feet and inches. Allow the user to enter a metric meter value in a method .
Consider a queue data structure : Consider a queue data structure, where the two operations of interest are enqueue (at the back of the queue) and dequeue (from the front of the queue). A queue is thus a FIFO (first in-first out) structure. Suppose we implement a queue by using tw..
Find all irreducible polynomials : Find all irreducible polynomials
Consider the predator-prey models : Consider the predator-prey models developed early part of the 20 th  century in which the number of predators and preys may be predicted using the pair of ODEs
Create a crow''s foot erd using a specialization hierarchy : Given the following business scenario, create a Crow's Foot ERD using a specialization hierarchy if appropriate. Tiny Hospital keeps information on patients and hospital rooms
Define a certain reaction has an activation energy : A certain reaction has an activation energy of 60.0 kj/mol and a frequency factor of A= 3.10×1012 M^-1s^-1 . What is the rate constant k , of this reaction at 30.0 Deg celsius?
What is the ph and a chemist titrates : A chemist titrates 20.00 mL of 0.2000 M HBrO ( Ka= 2.3 x 10^-9) with .1000 M NaOH. What is the pH? A) Before any base is added? B) When [HBrO] = [ BrO-] C) at the equivalence point
Explain what is the oxidation state of copper : The minerals chalcocite (Cu2S) and malachite (Cu2CO3(OH)2) are two primary sources of copper. What is the oxidation state of copper in each of these minerals?

Reviews

Write a Review

MATLAB Programming Questions & Answers

  Finite difference method

Use the finite difference method to calculate the temperature at the point specified since it is easier.

  Determine the necessary shell temperature

In a shell-and-tube heat exchanger, one fluid passes through a central tube while another fluid flows through an outer shell in the opposite direction. The purpose is to heat the fluid passing through the central tube.

  Find the integral of a function at an arbitrary location

Write a Matlab function to perform numerical integration of a set of evenly spaced data points using the trapezoidal rule

  Compute the speed of single-stage planetary gear train

Write a MATLAB function [speed] = planetary (N, emesh, first, last, arm) that computes the speed of a given link in a single-stage planetary gear train.

  Calculate and plot the error in the numerical derivative

Write a program to calculate and plot the error in the numerical estimate of the derivative.

  Create the graph using matlab functions

Create the graph, which contains a piecewise function where a line exists in the first interval, a parabola in the second interval, and the sine function in the third interval.

  Develop a simulation program

Develop a simulation program

  Create a vector in matlab

Create a three dimensional diagram of function.

  Open a named pipe and to read data from the pipe

Open a named pipe and to read data from the pipe in matlab

  Write the commands that will create the matrix

Write the commands that will create the matrix.

  Lagrange interpolating polynomial of degree

Lagrange interpolating polynomial of degree

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd