Is it possible to have a workspace variable that persists across a call to clear?

前端 未结 2 1948
忘了有多久
忘了有多久 2020-12-31 07:31

Suppose I run a script X.m and it creates a bunch of variables, and I want to save a variable called Z, so I write myVar = Z.

2条回答
  •  感情败类
    2020-12-31 08:07

    There's Keep on the MATLAB file exchange which lets you clear everything except certain variables that you wish to keep.

提交回复
热议问题