Home > phiwave > @phiw_daub > num_coeffs.m

num_coeffs

PURPOSE ^

method to get/set number of coefficients

SYNOPSIS ^

function res = num_coeffs(o, num)

DESCRIPTION ^

 method to get/set number of coefficients
 FORMAT res = num_coeffs(o, num)

 get: n = num_coeffs(o);
 set: o = num_coeffs(o, num)

 $Id: num_coeffs.m,v 1.3 2005/06/05 04:42:22 matthewbrett Exp $

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function res = num_coeffs(o, num)
0002 % method to get/set number of coefficients
0003 % FORMAT res = num_coeffs(o, num)
0004 %
0005 % get: n = num_coeffs(o);
0006 % set: o = num_coeffs(o, num)
0007 %
0008 % $Id: num_coeffs.m,v 1.3 2005/06/05 04:42:22 matthewbrett Exp $
0009   
0010 if nargin < 2
0011   % get
0012   res = o.num_coeffs;
0013 else
0014   % set
0015   o.num_coeffs = num;
0016   [H G RH RG] = daub(num);
0017   res = set_filters(o, H, G, RH, RG);
0018 end

Generated on Wed 06-Jul-2005 18:07:21 by m2html © 2003