title: What is nargin outside of a function?
body: <p>I was just writing a Matlab function and wanted to copy and paste what I had to an interactive session. Some of it was <code>nargin</code> statements (e.g. <code>if nargin &lt; 1; a = 0; end;</code>), and it turns out that <code>nargin</code> had the value 11005 in my workspace, without my having assigned it. Does anyone know what this is, whether it is used for anything (outside of functions) and if there is any problem with setting it to zero?</p>