</span>
0007 
0008 <span class="comment">% check once and for all to save time</span>
0009 <span class="keyword">persistent</span> bsxfun_exists;
0010 <span class="keyword">if</span> isempty(bsxfun_exists); 
0011     bsxfun_exists=(exist(<span class="string">'bsxfun'</span>)==5); 
0012     <span class="keyword">if</span> ~bsxfun_exists; 
0013         warning(<span class="string">'bsxfun not found.  Using repmat'</span>);
0014     <span class="keyword">end</span>
0015 <span class="keyword">end</span>
0016 
0