x">[0,1]</script> with default parameters: order=1, abstol=0.01, relTol=0</p><pre class="codeinput">warning(<span class="string">'off'</span>,<span class="string">'GAIL:cubBayesNet_g:fdnotgiven'</span>)
[~,muhat] = cubBayesNet_g;
exactInteg = 1.0/3;
warning(<span class="string">'on'</span>,<span class="string">'GAIL:cubBayesNet_g:fdnotgiven'</span>)
check = double(abs(exactInteg-muhat) &lt; 0.01)
</pre><pre class="codeoutput">
check =

     1

</pre><p><b>Example 2: ExpCos</b></p><p>Estimate the integral wi