help-octave
[Top][All Lists]
Advanced

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

discretize


From: Singh, Brajendra (CDC/DDID/NCEZID/DHQP)
Subject: discretize
Date: Fri, 18 Jan 2019 20:46:29 +0000

Hi,

I am after locating a built-in function in Octave, which can equivalently work as does discretize in Matlab. A Matlab example is below.

 

++++++++++++++++++++++++++++++++++++++++++++++++++

X = 1:2:11;

edges = [1 3 4 7 10 11];

Y = discretize(X,edges,'IncludedEdge','right')

 

Y = 
 
     1     1     3     3     4     5

++++++++++++++++++++++++++++++++++++++++++++++++++

 

Thanks in advance!

 

Braj

 


reply via email to

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