please would you change this python program to matlab ?

1 Ansicht (letzte 30 Tage)
yared Zeleke
yared Zeleke am 7 Apr. 2018
Kommentiert: yared Zeleke am 10 Apr. 2018
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 Kommentare
Walter Roberson
Walter Roberson am 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
yared Zeleke am 10 Apr. 2018
yes it is would you change it that please to matlab program?i tried half way

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Steven Lord
Steven Lord am 9 Apr. 2018
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.

Kategorien

Mehr zu Call Python from MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by