Mercurial > octave-nkf
comparison scripts/signal/autocov.m @ 3238:041ea33fbbf4
[project @ 1999-03-26 17:48:16 by jwe]
author | jwe |
---|---|
date | Fri, 26 Mar 1999 17:48:35 +0000 |
parents | e4f4b2d26ee9 |
children | ca92c9d3f882 |
comparison
equal
deleted
inserted
replaced
3237:737b219ab65a | 3238:041ea33fbbf4 |
---|---|
24 ## Author: FL <Friedrich.Leisch@ci.tuwien.ac.at> | 24 ## Author: FL <Friedrich.Leisch@ci.tuwien.ac.at> |
25 ## Description: Compute autocovariances | 25 ## Description: Compute autocovariances |
26 | 26 |
27 function retval = autocov (X, h) | 27 function retval = autocov (X, h) |
28 | 28 |
29 [n c] = size (X); | 29 [n, c] = size (X); |
30 | 30 |
31 if (is_vector (X)) | 31 if (is_vector (X)) |
32 n = length (X); | 32 n = length (X); |
33 c = 1; | 33 c = 1; |
34 X = reshape (X, n, 1); | 34 X = reshape (X, n, 1); |