|
From: | Richardson, Anthony |
Subject: | RE: |
Date: | Fri, 7 Dec 2018 14:24:10 +0000 |
A(find(A == 10)) = 0; Or, more directly using logical indexing, A(A == 10) = 0; Tony Richardson From: Help-octave <help-octave-bounces+address@hidden>
On Behalf Of Rajendra Marathe I have a column matrix A(5000,1) It has elements with values from 1 to 10 I wish to substitute the elements with value of 10 With value of 0 Please let me know how I can implement this on octave R V Marathe |
[Prev in Thread] | Current Thread | [Next in Thread] |