Azzera filtri
Azzera filtri

How do I write a sparse matrix in MATLAB

3 visualizzazioni (ultimi 30 giorni)
Shlesha Van
Shlesha Van il 15 Dic 2020
Commentato: Jan il 16 Dic 2020
  2 Commenti
Shlesha Van
Shlesha Van il 15 Dic 2020
That gives solutions on how to convert a full matrix into sparse. My case is opposite. I want to convert a sparse into full

Accedi per commentare.

Risposte (2)

Daniel Pollard
Daniel Pollard il 15 Dic 2020
Modificato: Daniel Pollard il 15 Dic 2020
https://uk.mathworks.com/help/matlab/ref/full.html
  4 Commenti
Jan
Jan il 16 Dic 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

Accedi per commentare.


Jan
Jan il 15 Dic 2020
You want to convert a sparse matrix into a full one? Then use the command: full().

Categorie

Scopri di più su Sparse 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!

Translated by