unwind-2.m

来自「GNU Octave is a high-level language, pri」· M 代码 · 共 14 行

M
14 行
字号
global g = -1;function f (x)  global g;  save_g = g;  unwind_protect    g = 0    [1,2;x];    g = 1  unwind_protect_cleanup    g = save_g  end_unwind_protectendfunctionf (3)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?