put a missed data in a cell

조회 수: 5 (최근 30일)
Honey
Honey 2020년 4월 17일
댓글: dpb 2020년 4월 17일
Hi,
I have a program which it's output is 22*22 cell. It took a long time to run. Now, I saw that in one struct and one variables there is a missed matrix. I can run the program for this specific day but if i can put the result in its place in that cell struct or not?
how is it possible to put new run in the same mat file?
Thank you in advance.
  댓글 수: 1
Ameer Hamza
Ameer Hamza 2020년 4월 17일
Do you want to avoid loading the mat file in memory? matfile(): https://www.mathworks.com/help/matlab/ref/matlab.io.matfile.html does provide the option to modify the .mat file directly, but It has not allowed to cell indexing into cell array or struct fields.

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

채택된 답변

dpb
dpb 2020년 4월 17일
If you build the cell content, there's no reason shouldn't be able to just assign it to the cell array where it belongs.
Then just rewrite the new variable to .mat file.
Of course, save a copy of the present file as backup first just in case you have a slip of the fingers...
  댓글 수: 2
Honey
Honey 2020년 4월 17일
Thank you so much.
Done!!!
I just loaded my previouse mat fie and then run the program for that specific day and finally assign it to the cell array where it belongs.
dpb
dpb 2020년 4월 17일
Ayup... :)

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Workspace Variables and MAT-Files에 대해 자세히 알아보기

태그

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by