    <span class="comment">% length of output time series</span>
0022 
0023 <span class="comment">% Now do the embedding efficiently by indexing into the original timeseries</span>
0024 embedded = timeseries(repmat((1:N)', 1, D) + repmat(lag * (0:(D-1)), N, 1));
0025</pre></div>
<hr><address>Generated on Fri 15-Aug-2008 11:35:42 by <strong><a href="http://www.artefact.tk/software/matlab/m2html/">m2html</a></strong> &copy; 2003</address>
</body>
</html>