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. Related SolutionsMATLAB: How to form a matrix of 400 X 7 and multiply values of 1st column of matrix with 4th Column EDITED[num,~,~]=xlsread('myexcelfile.xlsx')RESULT = num(:,1).*num(:,3)average = mean(RESULT) MATLAB: Simple question about Standard Deviation. By default, it will give the sample standard deviation. Call it asstd(x,1)to get the population. That is explained in the documentation for std, in the section describing the input argument weight. Related QuestionHow to compute averge of columnsDoes normpdf() take z valuesHow to average 1X5 cellHow to use the several average of same class
Best Answer