Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %% Wykres funkcji
- [x,y] = meshgrid(-5.12:0.1:5.12);
- z=(x.^2)+(y.^2);
- surfc(x,y,z);
- figure
- %% Wartości osobników
- subplot(2,1,1)
- semilogx(oooo,Yos1)
- title('Wartość osobnika w każdym pokoleniu')
- xlabel('Pokolenie')
- ylabel('Wartość osbnika jeden')
- subplot(2,1,2)
- semilogx(oooo,Yos2)
- xlabel('Pokolenie')
- ylabel('Wartość osbnika dwa')
- %% Wartosci funkcji
- figure
- loglog(oooo,O)
- title('Wartość funkcji w każdym pokoleniu')
- xlabel('Pokolenie')
- ylabel('Wartość funkcji')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement