Re: sosfilt.cc
David Bateman <[email protected]> Mon, 31 Mar 2008 17:18:42 +0200
| Newsgroups | gmane.comp.gnu.octave.sources |
|---|---|
| Message-ID | <[email protected]> |
Eric Chassande-Mottin wrote: > here is a possible implementation for sosfilt(). > I have checked that it gives consistent results > as compared to matlab's version. > > eric > > ------------------------------------------------------------------------ > > _______________________________________________ > Octave-sources mailing list > [email protected] > https://www.cae.wisc.edu/mailman/listinfo/octave-sources This is a signal processing toolbox function. It should go into octave-forge instead. You also need to check error_state after initializing the variables to see that a matrix has been read. Matrix sos( args(0).matrix_value() ); ColumnVector x( args(1).vector_value() ); if (error_state) { // The rest of the code } This will prevent the code running after an error in reading the argument list. Do you want to commit this to the octave-forge signal toolbox? D. -- David Bateman [email protected] Motorola Labs - Paris +33 1 69 35 48 04 (Ph) Parc Les Algorithmes, Commune de St Aubin +33 6 72 01 06 33 (Mob) 91193 Gif-Sur-Yvette FRANCE +33 1 69 35 77 01 (Fax) The information contained in this communication has been classified as: [x] General Business Information [ ] Motorola Internal Use Only [ ] Motorola Confidential Proprietary