MATRIXx

cancel
Showing results for 
Search instead for 
Did you mean: 

pdm channels name

Hello,

I am using the function histogram to get an idea of the altitude data distribution (of a surface). I need to retrieve the classes made by the histogram functions. How can I do that? Right now, I am only able to retrieve the results.
Thanks!
Karina
0 Kudos
Message 1 of 2
(6,809 Views)
Karina,
The result from the histogram function is returned in the form of a PDM. The domain of the PDM corresponds to the limits of the bins. You can extract the domain of the pdm using the function domain.

data=random(100,100);
hist=histogram(data)
bins=domain(hist)


I assume that classes and bins refer to the same thing.

Carl L
National Instruments
Message 2 of 2
(6,809 Views)