%%%%<a name="2"></a></h2><pre class="codeinput">close <span class="string">all</span>; clear <span class="string">all</span>; clear <span class="string">functions</span>; clc;
<span class="comment">% import tacopig.*;</span>
</pre><h2>Set up 3-D Data<a name="3"></a></h2><p>Training Data</p><pre class="codeinput">groundtruth = @(x,y,z) 5*exp(-(((x).^2)/5+((1-y).^2)/2+((0.5-z).^2)/3))<span class="keyword">...</span>
    -4*exp(-(((2-x).^2)/2+((-1-y).^2)/5+((-1.5-z).^2)/2));
X = (rand(3,50)-0.5)*6;
y = groundt