Why lost original file?

조회 수: 8 (최근 30일)
Hla Hla
Hla Hla 2022년 8월 6일
답변: yanqi liu 2022년 8월 9일
I have trained trainnetwork. I save the workspace as a .mat file. When i called the load .mat file again, the data appear in my workspace. But program original file is lost. Why?
  댓글 수: 2
Walter Roberson
Walter Roberson 2022년 8월 6일
That could happen if you accidentally save'd on top of your .m file. You should make sure to save to a .mat file.
dpb
dpb 2022년 8월 6일
There's at least an outside chance there might be an autosave file copy of the m-file -- look for files whose extension is ".asv" in the location you saved the original m-file.
Check if the default preferences for autosave have been modified -- there's a secton on backup files under the Editor/Debugger section...

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

답변 (2개)

Hla Hla
Hla Hla 2022년 8월 7일
Thanks

yanqi liu
yanqi liu 2022년 8월 9일
yes, sir, if you save the net to mat file,may be use save file.mat variable, such as save the cnn_model
save a.mat cnn_model
then load a.mat can get cnn_model
if just use
save a.mat
it auto save all variable to mat, if use load to get them, we can use
load('a.mat', 'cnn_model')
to get the target

카테고리

Help CenterFile Exchange에서 Image Data Workflows에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by