Hi, yes they are increasing values, but the size of the arrays differs quite a bit. I am trying to do an implicit loop but I cannot get it to work. Do you mean by setting up the index as a function?
Hi,
Thank you for your response. If I want to save the first index that is the best match in the second array, how would I break after that? Just to get the code working first and then I can change afterwards if it is not a good match.
Thanks!
Hi BvU,
Yes sorry if my initial explanation was not clear. I am trying this in MATLAB where I have vector 1; and vector 1+window
Then I search for indices of vector 2 that lie between these values, running through each value for vector 1, vector 1+ window
This is taking very long and I still...
Hi BvU,
I agree that 4 is better than one big one. I just do not know how to implement what you mean. I need indices corresponding to values of first vector within window of second vector. is what you're suggesting giving me values of first vector within window of itself?
Hi,
Thanks all for the replies. In response, the time information is already increasing but it is not evenly spaced. I am not sure what you mean since that would only give me indices for the first set, but I need the indices for the second set as well and the two have different lengths...
I am thinking to use ismembertol but this is not unique and I want values of vector2 within coincidence window after vector1, so not absolute comparison
Hello,
I am trying to do the following:
I have two inputs that are very large files - I extract the first column of each so I have two vectors of ~2-5mil by 1. This is timing information. The goal is to extract the indices of each vector where the time in one vector is within a certain...
Homework Statement
Given: Cn_dot = true event rate = 10 interactions/s
p(t')dt' = differential probability of an event
Homework Equations
p(t')dt' = Cn_dot * exp(-Cn_dot * t') dt'
The Attempt at a Solution
[/B]
I want to sample the time interval using python. But I'm not sure how to go...