Convert adjacency matrix to specific edge list

4 ビュー (過去 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 件)

カテゴリ

Help Center および File ExchangeData Type Conversion についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by