creating an 8x8 matrix using "diag"
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Liam Sullivan
le 22 Jan 2020
Réponse apportée : James Tursa
le 22 Jan 2020
So im trying to create an 8x8 matrix with 2's in the diagonal but 0s everywhere else. I used diag(8,8)*0 + 2 but that gived me 2's everywhere.
0 commentaires
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Interpolation dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!