How can I code diagonal matrix
Mostra commenti meno recenti
Wm is an N0tilda x N0tilda diagonal matrix
---Matlab code---
Wm = zeros(N0tilda,N0tilda);
----------------------------
given by
Wm = diag(W_{n0}^{-m * 0},W_{n0}^{-m * 1}, ..., W_{n0}^{-m * (N0tilda -1})
I don't make given by Wm
Risposte (2)
Walter Roberson
il 17 Giu 2015
Wm = diag( [ W_{n0}^{-m * 0},W_{n0}^{-m * 1}, ..., W_{n0}^{-m * (N0tilda -1} ] )
1 Commento
DongShin Yang
il 17 Giu 2015
Modificato: Walter Roberson
il 18 Giu 2015
DongShin Yang
il 17 Giu 2015
Modificato: Walter Roberson
il 18 Giu 2015
Categorie
Scopri di più su Operating on Diagonal Matrices in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!