 <p>In MATLAB, you can run</p> <pre><code>format debug </code></pre> <p>in the MATLAB Command Window to force it to display the variable as its memory location, rather than as its value. (This is an undocumented (AFAIK), but publicly known, option for the FORMAT function.)</p> <p>See HELP FORMAT to determine what your current display format is, and more importantly, how to restore it, once you're done looking at the memory locations.</p>