please would you change this python program to matlab ?
Show older comments
GENSIZE=20
genepool =[]
for i in range(0,GENSIZE);
dna = [random.choice(string.printable[:-5]) for j in range(0, len(target))]
fitness = calc_fitness{'dna':dna,'fitness':fitness}
4 Comments
Michelle Hirsch
on 9 Apr 2018
Note that you won't get vary far without also translating calc_fitness.
yared Zeleke
on 9 Apr 2018
Walter Roberson
on 10 Apr 2018
This looks like a portion of
https://www.mathworks.com/matlabcentral/answers/392466-i-want-to-change-this-python-program-to-matlab
yared Zeleke
on 10 Apr 2018
Answers (1)
Steven Lord
on 9 Apr 2018
0 votes
Do you need to convert the program or do you just need to use the program? If using this Python program is sufficient, you may be able to do so using the ability of MATLAB to call Python libraries that was introduced in release R2014b.
1 Comment
yared Zeleke
on 10 Apr 2018
Categories
Find more on Call Python from MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!