Note that <em>x</em> is intentionally <b>NOT</b> defined in myMean.m to make it more malleable. Just define it before running the script. The <em>x</em> you just defined shares the same work space (<i>i.e.,</i> memory space) from which it is invoked. The script <code><span class="placeholder">myMean.m</span></code> can "see" <em>x</em> as long as it is invoked in the same work space where <code>x</code> is defined, as shown in this example.

