chop missing
HoX
mail2hox at gmail.com
Sun Apr 13 17:51:06 CDT 2008
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) );
--
"Coltiva Linux, tanto Windows si pianta da solo" - Anonimo
"Se qualcosa può andar male, lo farà" - Murphy's Law
Untrust the Trusted Computing - http://www.no1984.org
NON AUTORIZZO LA MEMORIZZAZIONE DEL MIO INDIRIZZO SU OUTLOOK
More information about the Bug-octave
mailing list