Borrar filtros
Borrar filtros

how can i combine the matrix A and Matrix B to generate the random Matrix ?

2 visualizaciones (últimos 30 días)
if i have
Matrix A = [ 0 3 represent number of group of ones in each row in the New matrix (X)
2 2
1 1
2 2
0 3]
and Matrix B = [ 0 2 1 2 0 represent number of group of ones in each column in the New matrix (X)
3 2 1 2 3 ]
how to generate a random matrix (X) which Where every numbers in matrix A and B must be at least zero between its numbers of one
like the solution X = [ 0 1 1 1 0
1 1 0 1 1
1 0 0 0 1
1 1 0 1 1
0 1 1 1 0 ]
  1 comentario
Muhammad Usman Saleem
Muhammad Usman Saleem el 9 de Abr. de 2016
i do not understand your question? What is the role of A,B matrix? and
Where every numbers in matrix A and B must be at least zero between its numbers of one ?

Iniciar sesión para comentar.

Respuestas (1)

awdhesh bind
awdhesh bind el 24 de Ag. de 2021
how to create a matrix with all the entries should be grater than 5 and less than 50 , randam matrix of order n cross n

Categorías

Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by