ND sparse arrays are not supported

I have solved a sparse matrix problem as:
A=sparse(A);
B=sparse(B)
x=A\B;
I tried to convert x to a 3-D array with:
Wxy=reshape(x,nx,ny,nz);
but I get : ND sparse arrays are not supported.
Any suggestions how to get around this? Thank you.

Réponses (1)

Mike
Mike le 11 Sep 2019

1 vote

Never mind, I just found ndSparse, which seems to do what I wanted.

Catégories

En savoir plus sur Sparse Matrices dans Centre d'aide et File Exchange

Question posée :

le 11 Sep 2019

Réponse apportée :

le 11 Sep 2019

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by