File:Wykresruchomy.gif

Original file(500 × 620 pixels, file size: 176 KB, MIME type: image/gif, looped, 19 frames, 7.6 s)

Captions

Captions

Add a one-line explanation of what this file represents

Summary

edit
Description
Polski: Wykres przedstawia zmiany populacji ofiar i drapieżników w czasie oraz wykres fazowy.
Date
Source Own work
Author LukashiMiamoto

clear all;

close all;

global s;

global K;

global r;

global k;

global D;

global h;

K=500;

r=0.895;

s=0.7;

D=3;

k=1;

h=1;

function y=lotkifun4(x);

global s;

global K;

global r;

global k;

global D;

global h;

y(1)=x(1).*(r.*(1-(x(1)/K))-((k.*x(2))/(x(1)+D)));

y(2)=x(2).*(s.*(1-(h.*x(2))/x(1)));

endfunction

t=[1:0.5:39];

x0=[10,10];

Z=lsode("lotkifun4", x0,t);

[X,Y]=meshgrid (5:5.5:45, 5:5.5:45); %tworzenie siatki

F=X.*(r.*(1-X./K)-k.*Y./(X+D)); %tworzenie wektrów

G=Y.*(s.*(1-h.*Y./X));

n=sqrt(F.^2+G.^2); %obliczanie długoœci wektrów

g=G./n;

f=F./n; %normalizacja wektrów

for i=1:20

j=i*4;

subplot(2,1,1) %tworzenie górnego rysunku

plot(t,Z(:,2),t,Z(:,1),'r') %tworzenie wykresu drapieżników i ofiar

hold on

legend('drapieżnicy','ofiary')

legend('location','north')

plot(t(j),Z(j,1),'o',"markersize",10) %tworzenie punktów

plot(t(j),Z(j,2),'o',"markersize",10)

xlabel('czas')

ylabel('liczebnoœć populacji')

subplot(2,1,2) %tworzeni dolnego rysunku

plot(Z(:,2),Z(:,1),'r') %rysowanie portretu fazowego

hold on

h=quiver(X,Y,f,g,1); %tworzenie pola wektorowego '1' oznacza długoœć wektoru

set (h,"maxheadsize",0.35) %ustalanie wielkoœci strzałki

plot(Z(j,2),Z(j,1),'o',"markersize",10) %rysowanie punktów

xlabel('populacja drapieżników')

ylabel('populacja ofiar')

hold off

nazwa= sprintf ( "NAZWA%04d.png",i)

print(nazwa,'-dpng','-S500,620')

close all

endfor

Licensing

edit
I, the copyright holder of this work, hereby publish it under the following license:
Creative Commons CC-Zero This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication.
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current10:10, 11 August 2011Thumbnail for version as of 10:10, 11 August 2011500 × 620 (176 KB)LukashiMiamoto (talk | contribs){{Information |Description ={{pl|1=Wykres przedstawia zmiany populacji ofiar i drapieżników w czasie oraz wykres fazowy.}} |Source ={{own}} |Author =LukashiMiamoto |Date =2011-08-11 |Permission =

There are no pages that use this file.

File usage on other wikis

The following other wikis use this file: