MATLAB: How to find the mean of a multidimensional array arraydimensionsmeanstatistics How do i find the mean of a 21 x 6 array and get a single answer? When i try to do it I am given 6 answers. Best Answer Use the single ‘:’ array reference to create a column vector out of any N-dimensional array:A = randi(99, 6); % Create DataMeanA = mean(A(:))MeanA = 57.25 Related SolutionsMATLAB: How to generate new vector and replace certain elements Nearly got it:meanV = mean(V); %save the mean in a new variable to avoid calculating it more than onceV(V > meanV) = V(V > meanV) - meanV; MATLAB: Mean of specific rows from one column This might work: mean(A([1, 3, 5, 6:7])) Related QuestionMultidimensional matrixHow to compute the mean, standard deviation, minimum, and maximum of a vector without using MATLAB’s std functionSigma notation with matricesMultidimensional colon operator
Best Answer