Question


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...

mer än 8 år ago | 0 answers | 0

0

answers

Question


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 ...

mer än 8 år ago | 1 answer | 0

1

answer

Question


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/...

mer än 8 år ago | 2 answers | 0

2

answers

Question


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...

mer än 8 år ago | 1 answer | 0

1

answer

Question


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...

mer än 8 år ago | 1 answer | 0

1

answer

Question


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 = ...

mer än 8 år ago | 0 answers | 0

0

answers

Question


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 ??

mer än 8 år ago | 1 answer | 0

1

answer

Question


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 ...

mer än 8 år ago | 2 answers | 0

2

answers

Question


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 ...

mer än 8 år ago | 1 answer | 0

1

answer

Question


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 ...

mer än 8 år ago | 1 answer | 0

1

answer

Question


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 ...

mer än 8 år ago | 1 answer | 0

1

answer

Question


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 ...

mer än 8 år ago | 1 answer | 0

1

answer

Question


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...

mer än 8 år ago | 0 answers | 0

0

answers

Question


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 ...

mer än 8 år ago | 1 answer | 0

1

answer

Question


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 ...

mer än 8 år ago | 2 answers | 0

2

answers

Question


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 ...

mer än 8 år ago | 3 answers | 0

3

answers

Question


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 = [ ...

mer än 8 år ago | 0 answers | 0

0

answers

Question


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 ...

mer än 8 år ago | 1 answer | 0

1

answer

Question


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 ...

mer än 8 år ago | 1 answer | 0

1

answer

Question


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 ...

mer än 8 år ago | 2 answers | 0

2

answers

Question


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...

mer än 8 år ago | 0 answers | 0

0

answers

Question


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...

mer än 8 år ago | 1 answer | 0

1

answer

Question


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 ...

mer än 8 år ago | 1 answer | 0

1

answer

Question


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...

mer än 8 år ago | 1 answer | 0

1

answer

Question


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...

mer än 8 år ago | 1 answer | 0

1

answer

Question


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 ...

mer än 8 år ago | 1 answer | 0

1

answer

Question


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 ...

mer än 8 år ago | 1 answer | 0

1

answer

Question


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...

mer än 8 år ago | 1 answer | 0

1

answer

Question


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...

mer än 8 år ago | 2 answers | 0

2

answers

Question


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 ...

mer än 8 år ago | 1 answer | 0

1

answer

Load more