How to became my Tridiagonal matrix
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
PRED LIU
il 7 Lug 2020
Risposto: Walter Roberson
il 8 Lug 2020
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 Commento
Dana
il 7 Lug 2020
If you want help. you should provide a much more detailed question. I have no idea what you're asking here.
Risposta accettata
Più risposte (2)
madhan ravi
il 8 Lug 2020
[m, n] = size(B);
ix = (1 : 2*m : n*2*m) + (0 : n - 1).';
Wanted = zeros(2*m - 1 , n);
Wanted(ix) = B
0 Commenti
Vedere anche
Categorie
Scopri di più su Creating and Concatenating Matrices in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!