Here is my data
02-Sep-2015 09:58:32: 0, 7.3200E-05,5, 2.0000E-0202-Sep-2015 09:58:32: 0, 7.3200E-05,5, 2.0000E-0202-Sep-2015 09:58:33: 0, 7.3100E-05,5, 2.0000E-0202-Sep-2015 09:58:33: 0, 7.3100E-05,5, 2.0000E-0202-Sep-2015 09:58:33: 0, 7.3200E-05,5, 2.0000E-0202-Sep-2015 09:58:33: 0, 7.3200E-05,5, 2.0000E-0202-Sep-2015 09:58:33: 0, 7.3200E-05,5, 2.0000E-0202-Sep-2015 09:58:33: 0, 7.3100E-05,5, 2.0000E-0202-Sep-2015 09:58:33: 0, 7.3100E-05,5, 2.0000E-0202-Sep-2015 09:58:33: 0, 7.3100E-05,5, 2.0000E-0202-Sep-2015 09:58:33: 0, 7.3100E-05,5, 2.0000E-0202-Sep-2015 09:58:33: 0, 7.3100E-05,5, 2.0000E-0202-Sep-2015 09:58:34: 0, 7.3100E-05,5, 2.0000E-0202-Sep-2015 09:58:34: 0, 7.3100E-05,5, 2.0000E-0202-Sep-2015 09:58:34: 0, 7.3200E-05,5, 2.0000E-0202-Sep-2015 09:58:34: 0, 7.3100E-05,5, 2.0000E-0202-Sep-2015 09:58:34: 0, 7.3100E-05,5, 2.0000E-0202-Sep-2015 09:58:34: 0, 7.3200E-05,5, 2.0000E-0202-Sep-2015 09:58:34: 0, 7.3100E-05,5, 2.0000E-0202-Sep-2015 09:58:34: 0, 7.3100E-05,5, 2.0000E-0202-Sep-2015 09:58:34: 0, 7.3100E-05,5, 2.0000E-0202-Sep-2015 09:58:34: 0, 7.3200E-05,5, 2.0000E-0202-Sep-2015 09:58:35: 0, 7.3200E-05,5, 2.0000E-0202-Sep-2015 09:58:35: 0, 7.3200E-05,5, 2.0000E-0202-Sep-2015 09:58:35: 0, 7.3200E-05,5, 2.0000E-0202-Sep-2015 09:58:35: 0, 7.3200E-05,5, 2.0000E-02
I have written some code
n=5;A=arrayfun(@(i) mean(data(i:i+n-1)),1:n:length(numdata1)-n+1)';
But i find NaN as the output
can i have some suggestions
Best Answer