Store 'sparse double' data

5 views (last 30 days)
Pietro Lindia
Pietro Lindia on 27 Mar 2015
Edited: James Tursa on 27 Mar 2015
Hi everyone, My question is the following: I have some 'sparse double' data as output, that is to say the Jacobian matrix coming from the lsqnonlin estimation, and I need to store it for every estimation I run. In other terms, I have a loop trough which I perform 200 estimation with lsqnonlin and for every estimation I need to keep track of the Jacobian matrix that comes out. The question is: how to do it? Indeed, I've checked the MatLab instructions for this kind of data but it only tells you how to prestore data in sparse double. I have also tried with 'cell(200)' but it gives error ('cell' is not able to store this kind of data). Is there any alternative? I kindly thank you all in advance.
  1 Comment
James Tursa
James Tursa on 27 Mar 2015
Edited: James Tursa on 27 Mar 2015
You certainly can store sparse matrices in cell arrays. Please show the code you are using to do this and we can help with the syntax. MATLAB does not support nD sparse arrays, but there is an FEX submission that can do it if you want to go that route instead.

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!