Mercurial > octave-nkf
view test/nest/persistent_nest.m @ 20653:9cef0a1207e4 @
cell2mat: add tests for cells of cells and char arrays
author | Carnë Draug <carandraug@octave.org> |
---|---|
date | Tue, 13 Oct 2015 11:40:05 +0100 |
parents | be18c9e359bf |
children |
line wrap: on
line source
# persistent_nest function y = persistent_nest () persistent x = 0; g; y = x; function g x = x + 1; end end