sliding window and keeping as a vector
1 view (last 30 days)
Show older comments
I have D-1 data of points 1-500 I would like to slide this data to have 20points in each window and be as a vector [123...20, 21...40 ect] I was trying to do it but it is showing a matrix (20x25) I am new to matlab anyone could help me please?
0 Comments
Answers (1)
Image Analyst
on 9 Sep 2014
How about
array2D = reshape(data, [20,25]);
Is that what you meant and want?
9 Comments
Image Analyst
on 9 Sep 2014
You're welcome. If we're done, then can you please mark the answer as "Accepted"? Thanks.
See Also
Categories
Find more on Data Type Identification 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!