提问


if i have fitness function how to generate the genetic algorithm ?
how to make this code [n,m]=size(A); A1=randi([0 1],n,m); S=(sum(sum(A ~= A1))) to be a fitness function and th...

8 years 前 | 0 个回答 | 0

0

个回答

提问


how to set some column or row in matrix to another random matrix?
if i have (n,m) Binary matrix A like this A = [ 0 0 0 0 1 1 0 1 1 1 0 0 0 0 0 0 0 0 0 1 ] and ...

8 years 前 | 1 个回答 | 0

1

个回答

提问


how to perform the double summation for this equation?
if i have (n,m) binary Matrix M and and i want to generate a random (n,m) matrix A and then apply this <</matlabcentral/...

8 years 前 | 2 个回答 | 0

2

个回答

提问


if i have a matrix and i want check condition if true then copy this row or column to new matrix?
if i have a (n,m) matrix A and i want to check condition if true then copy this row or column to new matrix? A = [ 1 1 1 0 0...

8 years 前 | 1 个回答 | 0

1

个回答

提问


how to change this code for search from last column to search from first column?
[n1,m1]=size(Complete_Fill); for k=1:n1 id_before=strfind(Complete_Fill(k,:),[0 1]); id_after=strfind(Comp...

8 years 前 | 1 个回答 | 0

1

个回答

提问


if i have a matrix i want to find some thing in this matrix and put it in a new matrix ?
if i have an (n,m) matrix A then i want to find some row or column in this matrix and put it in a new matrix like that A = ...

8 years 前 | 0 个回答 | 0

0

个回答

提问


i want a way when i apply crossover and mutation in genetic algorithm to do this ?
i want a way when i apply crossover and mutation in genetic algorithm where some row or column will be not change ??

8 years 前 | 1 个回答 | 0

1

个回答

提问


random matrix with specific condition in matlab ?
how to generate a random matrix except some row or column ? like this A = [ 1 0 0 0 0 0 1 1 0 1 1 1 0 0 ...

8 years 前 | 2 个回答 | 0

2

个回答

提问


Why this error happened when i run genetic algorithm?
when i run this function in genetic algorithm in optimization tool box this error occur * Attempt to execute SCRIPT ga as ...

8 years 前 | 1 个回答 | 0

1

个回答

提问


how to generate a random matrix with specific condition ?
i want to generate a random matrix in every time i want a specific row will be the same if i have Matrix A = [0 -1 0 ...

8 years 前 | 1 个回答 | 0

1

个回答

提问


if i have a vector , i want to subtract it with value ?
if i have this vector v = [ 10 5 3 5 6 7 ] and i want to subtract it by 3 then ...

8 years 前 | 1 个回答 | 0

1

个回答

提问


how to count number of zeros in each row and column?
how can count the number of zeros in each row and in each column like this A = [ 1 1 0 1 0 1 0 0 1 0 1 0 ...

8 years 前 | 1 个回答 | 0

1

个回答

提问


if i have some matrix unknown how to generate a matrix with condition to give the same matrix?
if i have some matrix unknown how to generate a matrix with condition to give the same matrix? for example A = [ 0 1 1 1 0...

8 years 前 | 0 个回答 | 0

0

个回答

提问


how can i combine the matrix A and Matrix B to generate the random Matrix ?
if i have Matrix A = [ 0 3 represent number of group of ones in each row in the New matrix (X) 2 2 ...

8 years 前 | 1 个回答 | 0

1

个回答

提问


how i can put the (-1) in binary matrix with condition ?
how i can put (-1) after and before any group of ones in matrix like this before code A = [ 1 1 0 0 0 1 0 1 1 ...

8 years 前 | 2 个回答 | 0

2

个回答

提问


How to generate a random matrix with conditions?
How to generate a matrix ( n x m ) where i need this number represent a number of ones in each row like this A = [ 2 3 1 ...

8 years 前 | 3 个回答 | 0

3

个回答

提问


what is the function to compute this equation?
if i have (n x m ) matrix like this A = [ 1 1 0 1 1 1 1 1 0 1 1 1 0 1 0 0 1 1 1 1 ] B = [ ...

8 years 前 | 0 个回答 | 0

0

个回答

提问


how to correct this error ?
% M_row to return the number of ones in each row % M_column to return the number of ones in each column M =[ 1 1 0 ...

8 years 前 | 1 个回答 | 0

1

个回答

提问


why is an error in this matrix??
if i have this matrix M =[ 0 0 1 0 1 0 1 0 1 0 1 0 1 0 0 1 1 1 1 0 1 1 1 1 1 1 1 1 0 1 0 1 1 1 0 1 0 0 ...

8 years 前 | 1 个回答 | 0

1

个回答

提问


how to add ones to binary matrix with condition to add them ?
if i have a four matrix like this A = [ 1 0 0 1 1 1 0 1 0 1 0 0 1 0 1 0 0 1 0 1 0 0 1 1 ] AND ...

8 years 前 | 2 个回答 | 0

2

个回答

提问


if there is a matrix how to apply genetic algorithm?
if there is a (N x M )matrix A AND B represent a number of group of ones in each row AND C represent a number of grou...

8 years 前 | 0 个回答 | 0

0

个回答

提问


how i can apply the genetic algorithm ?
I'am working on nonogram puzzle to solve it with genetic algorithm if i know the fitness function how i can apply the ge...

8 years 前 | 1 个回答 | 0

1

个回答

提问


how to merge three matrix into one ?
if i have three matrix with different size like this A = [ 1 1 0 0 1 0 1 0 1 0 0 1 1 1 0 1 0 1 0 1 ...

8 years 前 | 1 个回答 | 0

1

个回答

提问


Replace and add element under specific condition
if i have this a (n,m) tow matrix A and B for example A = [ 1 0 1 0 1 0 1 0 1 1 1 1 1 0 0 1 0 0...

8 years 前 | 1 个回答 | 0

1

个回答

提问


when i run matlab code this sentence appear?
when i run the code this sentence 'Undefined function or variable 'f'.' and this happens for all variable * note : the works...

8 years 前 | 1 个回答 | 0

1

个回答

提问


set number 1 in binary matrix
if i have (NxM) matrix D and A D = [ 1 0 1 0 1 0 1 0 1 1 1 1 1 0 0 1 0 0 1 1 1 1 0 0 ...

8 years 前 | 1 个回答 | 0

1

个回答

提问


how to merge tow matrix ?
if i have tow matrix A = [ 1 0 1 0 1 and B = [ 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 ...

8 years 前 | 1 个回答 | 0

1

个回答

提问


who to replace a row in matrix ?
how to replace a row of matrix with the vector extract from another matrix for example A = [ 1 0 1 1 0 1 1 0 1 0...

8 years 前 | 1 个回答 | 0

1

个回答

提问


Replace a zeros row with one under a condition very important for me
if Matrix A (M x N) like this matrix as input of function A =[0 0 1 0 1 0 1 0 1 0 1 0 1 0 0 1 0 1 1 0 1 1 1 1 1...

8 years 前 | 2 个回答 | 0

2

个回答

提问


count number of index in many vector
if i have A{1} = 2 8 1 1 then the solution will be 4 A{2} = 1 3 ...

8 years 前 | 1 个回答 | 0

1

个回答

加载更多