ss="comment">% single channel, step</span>
0005 x=[randn(N,1)+1; randn(N,1)-1]; 
0006 
0007 figure(1); clf;
0008 subplot 411
0009 plot(x); title(<span class="string">'step (with noise)'</span>);
0010 subplot 423
0011 [idx,score_vector,score]=nt_split(x); 
0012 disp([num2str(idx), <span class="string">'score: '</span>,num2str(score,<span class="string">'%.03f'</span>)]);   
0013 plot(score_vector); title(<span class="string">'split on mean'</span>)
0014 subplot 424
0015 [idx,score_vector,score]=nt_split(x.^2