sliding window and keeping as a vector

1 view (last 30 days)
Nessa
Nessa on 9 Sep 2014
Commented: Image Analyst on 9 Sep 2014
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?

Answers (1)

Image Analyst
Image Analyst on 9 Sep 2014
How about
array2D = reshape(data, [20,25]);
Is that what you meant and want?
  9 Comments
Image Analyst
Image Analyst on 9 Sep 2014
You're welcome. If we're done, then can you please mark the answer as "Accepted"? Thanks.

Sign in to comment.

Categories

Find more on Data Type Identification in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!