how generating evenly spaced vectors with overlap?
Show older comments
Hi all,
I need to generate evenly spaced vectors with overlap. How can I do it? Here an example:
Input: [0 5 10 15 20];
Output: [0 5, 4 10,9,15,20];
I know they are not even, but also like that is fine.
Thanks cheers
3 Comments
Sara
on 26 Jun 2014
Can you provide an example? What do you mean "with overlap"? How about something like this:
x = 1:1:10
or
x = linspace(1,10,10);
the cyclist
on 26 Jun 2014
I don't understand the rule for going from input to output.
Also, numeric matrices in MATLAB cannot be "uneven". Do you want to put a placeholder of "NaN" (not-a-number), or use some other class of variable, such as a cell array?
pietro
on 26 Jun 2014
Accepted Answer
More Answers (0)
Categories
Find more on Matrices and Arrays in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!