please would you change this python program to matlab ?
11 次查看(过去 30 天)
显示 更早的评论
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 个评论
Walter Roberson
2018-4-10
This looks like a portion of
https://www.mathworks.com/matlabcentral/answers/392466-i-want-to-change-this-python-program-to-matlab
回答(1 个)
Steven Lord
2018-4-9
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.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Call Python from MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!