Storing decomposition object for future use

조회 수: 4 (최근 30일)
Jayabrata Dhar
Jayabrata Dhar 2019년 12월 6일
댓글: Walter Roberson 2020년 1월 23일
I used the function decomposition to create a MATLAB decomposition object dA.
dA = decomposition(A)
Since my primary matrix A is same for all simulations even with other parameters, I wish to create dA once (and by once I do not mean not once at the start of every simulation but say once in a lifetime since my matrix A remains exactly same for the present physics) and store it as a .mat file (or any other file system) so that I can re-use it without re-running it for every new simulation. However, MATLAB gives a warning
Warning: Saving a decomposition is not supported.
> In decomposition/saveobj (line 667)
Is there any other round about to save dA and re-load and use it for future use.
Thanks in advance.

답변 (1개)

Jyothis Gireesh
Jyothis Gireesh 2020년 1월 23일
This is a limitation on the decomposition object. Please refer to the following link which addresses a similar issue and offers a possible workaround to the same.
Hope this helps!!
  댓글 수: 2
Jayabrata Dhar
Jayabrata Dhar 2020년 1월 23일
Thanks for your reply. However, the workaround is not for decomposition although the explanation why it cannot be saved was new to me. Hopefully, MATLAB will come up with a new file format that can be maintained across various computers to save such matrices which does strongly reduces the simulation and other computation time.
Walter Roberson
Walter Roberson 2020년 1월 23일
Reading the description, I realized that they are saying that the decomposition object uses pointers. Saving and restoring pointers is always dubious.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Matrix Decomposition에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by