I need a power function for a boolean matrix.

6 visualizaciones (últimos 30 días)
niyazeli abdukerim
niyazeli abdukerim el 27 de Feb. de 2017
Respondida: Walter Roberson el 27 de Feb. de 2017
I need a power function for a boolean matrix.For example, boolean matrix
A = 0 1 0 1 0 0
0 0 0 0 1 0
0 1 0 0 0 0
1 1 0 0 0 0
0 0 0 1 0 1
0 0 0 0 0 0
And I need to calculate second power of A. Does matlab have such a function?

Respuestas (2)

Stephen23
Stephen23 el 27 de Feb. de 2017
>> A ^ 2
ans =
1 1 0 0 1 0
0 0 0 1 0 1
0 0 0 0 1 0
0 1 0 1 1 0
1 1 0 0 0 0
0 0 0 0 0 0

Walter Roberson
Walter Roberson el 27 de Feb. de 2017

Categorías

Más información sobre Introduction to Installation and Licensing 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