MATLAB: Mean of 72720 rows in one column such that I can take mean of 720 rows separately. anas Hello! I have data of 72720 rows in one coloumn. I want to take the mean of each 720 rows and then plot a graph. Thank you Best Answer Try this: data = (1:72720)'; % Create Column Vector To Test Coderdata = reshape(data, [], 720); % Reshape To Matrixrdata_mean = mean(rdata); % Calculate Column Meansfigureplot(1:numel(rdata_mean), rdata_mean)gridExperiment to get the result you want. Related SolutionsMATLAB: Splitting of 1 coloumn into multiple coloumn myMat = reshape( myVec, [], 137 );maxVals = max( myMat ); MATLAB: Finding Statistics of a Matrix Help!!! Force the array into a vector, then use mean, std, the appropriate version of iqr, and the rest.Example —a_mean = mean(a(:));and so for the other functions. Related QuestionI have a 256×4 matrix. I want to divide the matrix into 256 matrices of 4 elements each. I am having a lot of difficulties. I tried using the mat2cell fn but it does not accept variable values. I would have to write ‘1’ 256 times. Any suggestionsOnly keep positve values from a matrix and plot the last of those values.Mean value every 60 rowsHow to add 0’s to the first row first coloumn and last row last column in 256×256 image making it 258×258
Best Answer