# Please I need help. How can I plot the Scale-free networks with prey-predator system

4 visualizaciones (últimos 30 días)
AMA el 25 de Mayo de 2021
Comentada: AMA el 11 de Jun. de 2021
How can I plot the Scale-free networks with prey-predator system
I have the system of ODEs
y1' = (2-.5*y2)*y1 +
y2' = (-1+.5*y1)*y2 +
f = @(t,y) [(2-.5*y(2))*y(1); (-1+.5*y(1))*y(2)];
y = [6;2]; t = 0; % given initial value
h = .1; % step size
for i=1:100
plot(t,y(1),'b.',t,y(2),'r.'); hold on % plot rabbits in blue, foxes in red
s = f(t,y); % find slope vector
y = y + h*s; % find new y-vector by using s
t = t + h;
end
hold off
legend('rabbits','foxes')
##### 0 comentariosMostrar -2 comentarios más antiguosOcultar -2 comentarios más antiguos

Iniciar sesión para comentar.

### Respuestas (1)

Manas Meena el 3 de Jun. de 2021
This example shows how to solve and plot a differential equation representing a predator/prey model
You can also refer to the following file exchange link that plots a phase portrait of the Lotka-Volterra Predator Prey model
##### 1 comentarioMostrar -1 comentarios más antiguosOcultar -1 comentarios más antiguos
AMA el 11 de Jun. de 2021
Thank you so Much

Iniciar sesión para comentar.

### Categorías

Más información sobre Deep Learning Toolbox 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!

Translated by