How do I find the average/mean of each row if the data has 150 rows and 3 columns?
4 views (last 30 days)
Walter Roberson on 23 Feb 2021
A = 'measurements';
That assigns the character vector ['m' 'e' 'a' 's' 'u' etc] to A, not the content of a variable named measurements.
%create some demonstration data
measurements = randi(10, 150, 3);
%now do the work
A = measurements; %not actually needed, could work directly on measurements
rowmeans = mean(A, 2)