help-octave
[Top][All Lists]
Advanced

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

RE:


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
Sent: Friday, December 7, 2018 12:08 AM
To: address@hidden
Subject:

 

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


reply via email to

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