![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/9580761_1522133420437_DEF.jpg)
yared Zeleke
Followers: 0 Following: 0
Feeds
提问
I want to get child_fitness=0 i got some eror please any one figure it out let me know thanks?
clear;close all;clc; GENSIZE=20; target = input('Enter a string (max 30 chars in length): ', 's'); genepool=[]; pop= char...
7 years 前 | 0 个回答 | 0
0
个回答提问
please would you change this python program to matlab ?
GENSIZE=20 genepool =[] for i in range(0,GENSIZE); dna = [random.choice(string.printable[:-5]) for j in...
7 years 前 | 1 个回答 | 0
1
个回答已回答
i want to change this python program to matlab
clc clear all target="hello,world!"; function fitval = fitness(source, target)%def calc_fitness; fitval = 0; ...
i want to change this python program to matlab
clc clear all target="hello,world!"; function fitval = fitness(source, target)%def calc_fitness; fitval = 0; ...
7 years 前 | 0
提问
i want to change this python program to matlab
import random import string target = "Hello, World!" def calc_fitness(source, target): fitval = 0 for...
7 years 前 | 1 个回答 | 0
1
个回答提问
a simple evoulutionary algorithm 1. the user can enter any user defined string as the evolutionary tareget up to 30 characters max
clc clear t= 'Hell world!'; numRands=length(t); tlength=numRands; source=t(ceil(rand(1,tlength)*numRands)); ...
7 years 前 | 1 个回答 | 0
1
个回答提问
write some statements on the command line to remove the largest elements from a vector .try it out on x=[1 2 5 0 5]. the idea is to end up with [1 2 0] in x. Use find and empty vector [ ].
clc clear runflag='Y'; while runflag=='Y'|runflag=='y' x_6 = input('Please input in the following format...
7 years 前 | 1 个回答 | 0
1
个回答提问
where can i use round function to make the function perfect
function [amt_ret, x]= calculate_change(tendered,price) %------------------------------------------------------------------...
7 years 前 | 1 个回答 | 0