MATLAB: Finding mean for multiple matrices meanmean of matricesone dimentional matrix I have three different one dimentional matrices. How do I find the mean values of them. For Example A=[4,5,6]; B=[2,3,6]; C=[5,4,2]; I nead mean of (A,B,& C) Please Help. Best Answer Please do read here result1=mean(A);So on.. Related SolutionsMATLAB: Finding average between TFunct1,TFunct2,TFunct3 Hi,how about this:TFunct=zeros(1700,1); % or whateverfor i = 1 : 17000TFunct(i,1)=mean([TFunct1(i,1),TFunct2(i,1),TFunct3(i,1)]);endor without a loop you can use this:>> A=[1 2;2 3;3 4;4 5;5 6]A = 1 2 2 3 3 4 4 5 5 6 >> B=[2 3;3 4;4 5;5 6;6 7]B = 2 3 3 4 4 5 5 6 6 7 >> C=[3 4;4 5;5 6;6 7;7 8]C = 3 4 4 5 5 6 6 7 7 8 >> D=[A(:,1)';B(:,1)';C(:,1)']D = 1 2 3 4 5 2 3 4 5 6 3 4 5 6 7>> mean(D)ans = 2 3 4 5 6 MATLAB: Mean value of a particular portion of a matrix variantmean(A(B==2)); Related QuestionCombine matrix in matlabCombine columns from different matrixTaking two matrices and outputting as a single number with one matrix being the integer value and one being the decimal value.
Best Answer