I need a power function for a boolean matrix.

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?

Kategorien

Mehr zu MATLAB finden Sie in Hilfe-Center und File Exchange

Tags

Gefragt:

am 27 Feb. 2017

Beantwortet:

am 27 Feb. 2017

Community Treasure Hunt

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

Start Hunting!

Translated by