How to create histogram to show 7 trials of an event...
1 view (last 30 days)
Show older comments
Hi,
I have a vector which contains approx. 11,000 values (timestamps), and another vector which contains 7 timestamps for 7 trials of an event.
I want to generate a histogram that shows the number of values of the 1st vector that fall between each event and 0.05sec. following each event in 100ms bins.
Does anyone have any advice concerning the generation of a histogram that I described?
0 Comments
Answers (1)
Image Analyst
on 9 Jan 2015
Edited: Image Analyst
on 9 Jan 2015
Call histc() with your edges being your 7 timestamp array and the data being your 11,000 timestamp array.
counts = histc(ts1000, ts7);
0 Comments
See Also
Categories
Find more on Histograms in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!