MATLAB Answers

how can i standardise the elements in a matrix

2 views (last 30 days)
NN
NN on 3 Dec 2020
Commented: Star Strider on 8 Dec 2020
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

Sign in to comment.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by