chop missing

David Bateman David.Bateman at motorola.com
Mon Apr 14 03:06:20 CDT 2008


HoX wrote:
> I find out that the matlab's command /chop/ is missing in octave. I 
> write a simple function which implements it in a really simple way and I 
> hope you will like it.
>
>     function [y] = chop ( x , t )
>         y = x - mod ( x * 10^(t-1), 1 ) * 10^( -(t-1) );
>
>   
The only references I can find to the chop function are in the original
version of Matlab (ie the one written in fortran with no m-files) and in
Nick Higham matrix toolbox at

http://www.maths.manchester.ac.uk/~higham/mctoolbox/

Which are you referring to.. If its Nick's his toolbox is licensed under
the GPL and there is tehrefore no need to rewrite this function.

D.

-- 
David Bateman                                David.Bateman at motorola.com
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



More information about the Bug-octave mailing list