MATLAB: Finding the standard deviation for every single value in a matrix

deviationMATLABmean

Hi Everyone,
I have a 10 matrices X1, X2,X3……X10. Each matrix has a size of (512×30).
1- i want to calculate the mean for all , and the output matrix must be in the same size as input (512×30).
2- Then, i want to calculate the standard deviation for all , and the output matrix must be in the same size as input (512×30).
Any help will be apperciated.

Best Answer

X=cat(3, X1,X2,X3,X4,X5,X6,X7,X8,X9,X10); %It was a mistake to create 10 separate matrices.
MeansX=mean(X,3),
StdX = std(X,[],3)