I have already looked at previous posts but can't find a satisfactory solution to my case yet. I am new to Matlab and have input/output device data which i have arranged into column vectors, now i need to loop equal sized windows through the whole datafile by creating same sized vectors at each instance. The data has 600 columns as example table below. Sorry it doesnt look the best as it won't allow me to edit it properly: All vectors i2, i3, i4,...,i600 are built exactly the same way as i1.
Data type ____ Columns 1 … 600
Input
0.20 0.37 0.21 -0.04 …
-0.06 0.01 0.31 0.17 ...
Output
0.34 -0.08 0.59 -0.04 …
0.11 0.06 0.72 0.18 …
-0.27 0.09 0.59 0.03 …
Each vector would have 14 elements from the data. So i1=[0.20; -0.06; 0.37; 0.01; 0.21; 0.31; -0.04; 0.17;...], i2=[0.37; 0.01; 0.21; 0.31; -0.04; 0.17;...], i3=[0.21; 0.31; -0.04; 0.17;...],..to i600. It means essentially vector i1 will be built by input data values in columns 1-7 as listed, and i2 will contain columns 2-8, while i3 columns 3-9 and so forth. As you can see, hence am trying to create data by forming 'overlapping' 14x1 input vectors. The outputs ie o1, o2,..will also be formed in exactly the same way only that vectors will be 21x1 in size, how do i build these vectors from this data? I am now stuck please help,
Thank you in advance :) Tee
reshape
to change it to a 14xN array. Then you can rather simply pick off whatever combination of columns you want. – AnonSubmitter85