how to full square matrix first column as second column and so on

1 view (last 30 days)
first column of full square matrix as second column and second column as third column
DG2 =
7.2263 36.234 41.867 36.555
0 43.326 49.059 36.53
0 0 6.9689 58.871
0 0 0 61.001
i need this because
h = view(biograph(DG2,[],'ShowWeights','on'))
Warning: Self connecting nodes are not allowed, ignoring the diagonal of CM.
> In biograph.biograph at 158
pls help me

Answers (0)

Categories

Find more on Operating on Diagonal Matrices in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!