How to became my Tridiagonal matrix
1 回表示 (過去 30 日間)
古いコメントを表示
B=[
16, 2 , 3, 13;...
5 , 11, 10, 8;...
9 , 7 , 6, 12;...
4, 14, 15, 1]
How to became my Tridiagonal matrix
16 0 0 0
5 2 0 0
9 11 3 0
4 7 10 13
0 14 6 8
0 0 15 12
0 0 0 1
1 件のコメント
Dana
2020 年 7 月 7 日
If you want help. you should provide a much more detailed question. I have no idea what you're asking here.
採用された回答
その他の回答 (2 件)
madhan ravi
2020 年 7 月 8 日
[m, n] = size(B);
ix = (1 : 2*m : n*2*m) + (0 : n - 1).';
Wanted = zeros(2*m - 1 , n);
Wanted(ix) = B
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Creating and Concatenating Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!