Convert adjacency matrix to specific edge list

조회 수: 1 (최근 30일)
muhammad ismat
muhammad ismat 2015년 9월 16일
편집: muhammad ismat 2015년 9월 16일
if i have the matrix
[1 0 0
0 0 1
0 0 0 ]
and i want the form
1 2 3 1 2 3 1 2 3
1 1 1 2 2 2 3 3 3
1 0 0 0 0 0 0 1 0
and i want the values of third row in result. i.e ans= [1 0 0 0 0 0 0 1 0]

답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by