Advertisement
Guest User

Untitled

a guest
May 26th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. % Generates population of specified size
  2. % size - size of the population
  3. % N - natural numbers from <0 15> representing fenotype
  4. % V - domain float discreet values from range <-10, 10>
  5. function [N,V] = generate(size)
  6. N = randi([0 15],1,size);
  7. V = naturalToDomain(N);
  8. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement