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.

Antworten (1)

Mike
Mike am 11 Sep. 2019

1 Stimme

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

Kategorien

Mehr zu Sparse Matrices finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 11 Sep. 2019

Beantwortet:

am 11 Sep. 2019

Community Treasure Hunt

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

Start Hunting!

Translated by