title: Using Globals instead of passing large arrays in Matlab
body: <p>I am using large arrays (about 70 MB each) and am worried about passing them to functions. My understanding is Matlab uses pass-by-value function arguments, making local copies for the called function.</p>
  
  <p>As a dirty workaround, I've been declaring the large arrays as global, and manually de-allocating them when computations are completed. </p>
  
  <p>My question:
  Is there a way to use pointers in Matlab? This is how I would do it in C/C++. If not, are there other more memory efficient methods? I've read that globals are generally a bad idea.</p>