.mat file missing data after restarting Matlab

조회 수: 2 (최근 30일)
Gareth
Gareth 2022년 8월 4일
댓글: Jeffrey Clark 2022년 8월 5일
I saved a Matlab variable as a .mat file, then reopened, giving it a new name. This new variable appeared to be complete; however, if I restart Matlab and open the same .mat file, some (but not all) of the data is missing. What could be causing this?
  댓글 수: 1
Jeffrey Clark
Jeffrey Clark 2022년 8월 5일
  1. If you are saving variables of user defined class(es) the same classes have to be available when loading the .mat file - the path during load may not include where the classes are.
  2. If you are saving variables containing handles (either graphics or from classes using the handle superclass) special save and load procedures may be needed.
Foreither of the above you should look at Object Save and Load and Handle Classes - MATLAB & Simulink (mathworks.com)

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

답변 (0개)

카테고리

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

태그

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by