help-octave
[Top][All Lists]
Advanced

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

Re: Array cell : return true if an element is >m


From: Ian McCallion
Subject: Re: Array cell : return true if an element is >m
Date: Fri, 20 Jul 2018 17:42:40 +0100

sum(cell2mat(bg)>m)

is the number of such elements. Please cope with the remainder of your problem yourself.

Ian


On 20 July 2018 at 17:26, LucaLuca <address@hidden> wrote:
hi,


i've the following array cell


bg =
{
  [1,1] = -30
  [1,2] = 4
  [1,3] = -1
  [1,4] =  5
  [1,5] =  4
  [1,6] = 31
  [1,7] = -1
  [1,8] = -1
  [1,9] = 18
  [1,10] = -1
  [1,11] = -1
}

i want a code return true if one element >m





--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html




reply via email to

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