~ubuntu-branches/ubuntu/karmic/scilab/karmic

« back to all changes in this revision

Viewing changes to macros/signal/hank.sci

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2002-03-21 16:57:43 UTC
  • Revision ID: james.westby@ubuntu.com-20020321165743-e9mv12c1tb1plztg
Tags: upstream-2.6
ImportĀ upstreamĀ versionĀ 2.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
function [hk]=hank(m,n,cov)
 
2
//<hk>=hank(m,n,cov)
 
3
//this macro builds the hankel matrix of size (m*d,n*d)
 
4
//from the covariance sequence of a vector process
 
5
//   m  : number of bloc-rows
 
6
//   n  : number of bloc-columns
 
7
//   cov: sequence of covariances; it must be given as :[R0 R1 R2...Rk]
 
8
//   hk : computed hankel matrix
 
9
//!
 
10
//author: G. Le Vey  Date: 16 Febr. 1989
 
11
// Copyright INRIA
 
12
 
 
13
   hk=[];
 
14
   d=mini(size(cov));
 
15
   for k=0:m-1,hk=[hk;cov(:,(k*d+1):(k+n)*d)];end;
 
16
 
 
17
 
 
18