trying to output the indeces for plus minus 5 from each value in an array
Show older comments
I am trying to create a loop that will find the index values for each value in an array plus minus 5
so far this is what I have:
i have an array of times from 100 to 3000 that goes up by icnrements of 100, but i want to find the indeces for 95 to 105, 195 to 205, 295 to 305, etc
I was able to do it for one value, but I dont want to have to manually out in the parameters for all 30 timepoints
Accepted Answer
More Answers (0)
Categories
Find more on Creating and Concatenating Matrices 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!