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.

Answers (1)

Mike
Mike on 11 Sep 2019
Never mind, I just found ndSparse, which seems to do what I wanted.

Categories

Find more on Sparse Matrices in Help Center and File Exchange

Asked:

on 11 Sep 2019

Answered:

on 11 Sep 2019

Community Treasure Hunt

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

Start Hunting!