I want to standardie the elements in a 9*576 double matrix (pn) in matlab.
I use the below code, but i dont get the same dimension, it gives 9*1 double matrix(pn1) , how can i standardise each element and get the same dimension.
mu = mean(pn);
sig = std(pn);
pn1 = (pn- mu) / sig;
3 Comments
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/674763-how-can-i-standardise-the-elements-in-a-matrix#comment_1192173
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/674763-how-can-i-standardise-the-elements-in-a-matrix#comment_1192173
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/674763-how-can-i-standardise-the-elements-in-a-matrix#comment_1192553
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/674763-how-can-i-standardise-the-elements-in-a-matrix#comment_1192553
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/674763-how-can-i-standardise-the-elements-in-a-matrix#comment_1192588
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/674763-how-can-i-standardise-the-elements-in-a-matrix#comment_1192588
Sign in to comment.