[go: up one dir, main page]

Menu

[73c35b]: / init / Apenv.m  Maximize  Restore  History

Download this file

24 lines (21 with data), 757 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
% Apenv(vch,t): ACF of effective pulse form for virtual channel 'vch' and time lag 't'
% GUISDAP v.1.60 96-05-27 Copyright Asko Huuskonen and Markku Lehtinen
%
% This if the preferred way of referencing matrix vc_Apenv, which contains the function
% for only non-negative values of 't'. Also possible references beyond the matrix
% index limits are hanled. The function also takes care of the fact that
% the value of ACF at lag 0 is stored at Matlab matrix index 1.
% Parameters
% vch : virtual channel numbers
% t: lag values, any value permitted
%
% See also: Aenv Ap
%
% function res=Apenv(vch,t);
function res=Apenv(vch,t);
global vc_Apenv
t=abs(t(:))+1;
[len,hups]=size(vc_Apenv);
ii=find(t>len);
t(ii)=len*ones(length(ii),1);
res=vc_Apenv(t,vch);