Advertisement
ForeverStrong

ProgramDoRysowania

Feb 2nd, 2015
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.49 KB | None | 0 0
  1. %% Wykres funkcji
  2. [x,y] = meshgrid(-5.12:0.1:5.12);
  3. z=(x.^2)+(y.^2);
  4. surfc(x,y,z);
  5. figure
  6. %% Wartości osobników
  7. subplot(2,1,1)
  8. semilogx(oooo,Yos1)
  9. title('Wartość osobnika w każdym pokoleniu')
  10. xlabel('Pokolenie')
  11. ylabel('Wartość osbnika jeden')
  12. subplot(2,1,2)
  13. semilogx(oooo,Yos2)
  14. xlabel('Pokolenie')
  15. ylabel('Wartość osbnika dwa')
  16.  
  17. %% Wartosci funkcji
  18. figure
  19. loglog(oooo,O)
  20. title('Wartość funkcji w każdym pokoleniu')
  21. xlabel('Pokolenie')
  22. ylabel('Wartość funkcji')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement