saving and loading global variables

조회 수: 2 (최근 30일)
craq
craq 2013년 12월 5일
I know that global variables are evil. But I'm taking over a project from someone else, and while I try to re-work it to avoid global variables, it would be helpful in the meantime if I could save or load the global workspace to a mat file. Does anyone here know a way?
This idea imports all global variables to the current workspace, and I guess I could save them from there, but I would have to remember that they were global when I re-imported the mat file http://www.mathworks.com/matlabcentral/answers/63455
This thread implies that a simple save used to work, way back in 1997 http://www.mathworks.com/matlabcentral/newsreader/view_thread/82

답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by