discretize

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

discretize

Singh, Brajendra (CDC/DDID/NCEZID/DHQP)

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