A better way to make a tridiagonal?
Afficher commentaires plus anciens
I'm currently generating a ton of square tridiagonal matrices using
matrix = full(gallery('tridiag',nn,D,1-2*D,D))
I definitely need it in my program but its using about 60% of my computation time. Any advice on a more efficient way for this?
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Matrix Indexing dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!