Prev: an easy question
Next: Integration
From: Jeremy Yatvin on 10 Aug 2010 11:27 I have a vector that I want to split into bins that contain values between 0-5, 5-10,10-15 etc all the way to 200. I also need to be able to get the average and standard dev of a second column that contains data corresponding to the first column (distance vs intensity) where I'm calculating average and stdev of the intensity within each bin. Is it possible to just extract the data bin by bin and create a new independent matrix/variable for each bin? I've been trying to find a function that comes with matlab but they all seem to split vectors according to the number of data points, not what they actually contain.
From: Andy on 10 Aug 2010 11:43 "Jeremy Yatvin" <wildfyr(a)gmail.com> wrote in message <i3rr49$snt$1(a)fred.mathworks.com>... > I have a vector that I want to split into bins that contain values between 0-5, 5-10,10-15 etc all the way to 200. I also need to be able to get the average and standard dev of a second column that contains data corresponding to the first column (distance vs intensity) where I'm calculating average and stdev of the intensity within each bin. Is it possible to just extract the data bin by bin and create a new independent matrix/variable for each bin? I've been trying to find a function that comes with matlab but they all seem to split vectors according to the number of data points, not what they actually contain. doc histc
From: Matt J on 10 Aug 2010 11:45 help histc
|
Pages: 1 Prev: an easy question Next: Integration |