MATLAB: Average of terms

average

Hello, I want to know that if i have row matrix of 1×160 and i want to take average upto certain values of the matrix then how can i do that?

Best Answer

mean(x(1:num)); %where num is the number you want to mean to.