Re: removing zeros from a vector
- From: Jos <x@xxx>
- Date: Thu, 18 May 2006 15:36:18 -0400
Jeremy Smith wrote:
What is the double tilde for in the following statement?
A = A(~~A)
~~ is the double negation
It's a matlab trick to get a logical vector with trues when A is not
zero. It is basically the same as
logical(A)
Jos
.
- Follow-Ups:
- Re: removing zeros from a vector
- From: Michael Wild
- Re: removing zeros from a vector
- References:
- removing zeros from a vector
- From: Don
- Re: removing zeros from a vector
- From: helper
- Re: removing zeros from a vector
- From: PB
- Re: removing zeros from a vector
- From: Don
- Re: removing zeros from a vector
- From: Jeremy Smith
- removing zeros from a vector
- Prev by Date: magnetic fields under high voltage power lines
- Next by Date: Re: 100x difference in script execution times
- Previous by thread: Re: removing zeros from a vector
- Next by thread: Re: removing zeros from a vector
- Index(es):
Relevant Pages
|
Loading