How do I write a sparse matrix in MATLAB
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens

2 commentaires
Réponses (2)
Daniel Pollard
le 15 Déc 2020
Modifié(e) : Daniel Pollard
le 15 Déc 2020
https://uk.mathworks.com/help/matlab/ref/full.html
4 commentaires
Jan
le 16 Déc 2020
The first two inputs of sparse() are the size of the matrix. As the error message tells you, [2,-1,0] cannot be a valid size. See the documentation of sparse :
doc sparse
Jan
le 15 Déc 2020
You want to convert a sparse matrix into a full one? Then use the command: full().
0 commentaires
Voir également
Catégories
En savoir plus sur Sparse Matrices 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!
