[eigen] find command or equivalent |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: [eigen] find command or equivalent
- From: Suresh Kumar <suresh.amritapuri@xxxxxxxxx>
- Date: Thu, 2 Sep 2010 21:40:33 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=/C8Ly2R8dpxe4jYNdFSmObslmxmDWRhWzWjhJPvLccs=; b=n0juGyQIBHWJGmVflJV+jxwAJXUsFKpzucVQ08jAqH20YFxHDdFpkf3kms0eCsqhbk FPyzDA6T3Z3eaywjRb2bI4w78sdAiKJKOGVsu19IjFzyh9mT6rze9CLbNzKbMYm3dFxJ SVe3NGoB9DBhRLImHkEZKkryS4TVZSvozoltM=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=VcxOQIP61tS2izEvUYUvubpA/BzGc/drWcQQmzeXzvCHtNZkqtwZc1amO/x/biem3L NGFaGrfr2ibzeSqAfdjBWZP2kzhTzNUc2d+Y7ne00FP26vZEmyCtqRu+x8PaJf816ZxC FnD8oppKAUTB0xaLthJp3+5tNU3j1joVz+uTY=
Hi
I want to replace all elements of a matrix, which are less than a threshold by zero. How to do it without writing a nested for loop?
I am looking for something like this in matlab. A(A < 0.001) = 0 where A is a matrix.
Thanks