help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: near zero value replaced by zero


From: Doug Stewart
Subject: Re: near zero value replaced by zero
Date: Thu, 17 Mar 2016 07:25:05 -0400



On Thu, Mar 17, 2016 at 5:42 AM, prasadmehendale <address@hidden> wrote:
Hi,
I used a function "clean" in Scilab. It makes a matrix element zero if less
than 1e-10. is there any equivalent function in gnu octave?
Thanks.
--pm



--
View this message in context: http://octave.1599824.n4.nabble.com/near-zero-value-replaced-by-zero-tp4675593.html
Sent from the Octave - General mailing list archive at Nabble.com.

_______________________________________________
Help-octave mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/help-octave

try

a=rand(5)
a(abs(a)<.3)=0



--
DAS


reply via email to

[Prev in Thread] Current Thread [Next in Thread]