I would like to know if there is matrix A=1000*50;
for each colum:
I want to first detrend and then calculate the variance for each 10 numbers, ie. var(detrend(1th:10th), var(detrend(11th:20th)…var(detrend(991th:1000th),
then take the average of these 100 variances.
finally I want to do the same for the rest 49 colums and present the results for all 50 colums in a row.
Please could you provide me with the matlab loops functions?