title: How to obtain slice plots from x,y,z,v data?
body: <p>I would like to use <code>Slice()</code> function for obtaining figures like this <a href="https://i.stack.imgur.com/RVK3e.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RVK3e.jpg" alt="figure"></a>, following the code:</p>
  
  <pre><code>[x, y, z] = meshgrid(-3:0.25:3);
  v = x.*exp(-x.^2 - y.^2 - z.^2);
  
  slice(x, y, z, v, [], 0, 0);
  colorbar;
  </code></pre>
  
  <p>Nevertheless, my value <code>v</code> is not a function of my x,y,z meshgrid, my v value is an scalar independent of x,y,z coordinates.</p>
  
  <p>Is there any way of obtaining a v value on the space, knowing only x,y,z coordinates + a v value associated to those coordinates?</p>