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.

Respuestas (1)

Mike
Mike el 11 de Sept. de 2019

1 voto

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

Categorías

Más información sobre Sparse Matrices en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 11 de Sept. de 2019

Respondida:

el 11 de Sept. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by