Filter löschen
Filter löschen

how to do normalization of a matrix

22 Ansichten (letzte 30 Tage)
AS
AS am 16 Jun. 2020
Bearbeitet: AS am 19 Jun. 2020
I have a matrix wity dimension 100 by 50. Now i want to normalize the matrix by doing normaization of each column. I want to normlaize each column separately to do normalization

Akzeptierte Antwort

Mohammad Sami
Mohammad Sami am 16 Jun. 2020
You can use the function normalize and specify which dimension you want to normalize.
From the documentation
"N = normalize(A) returns the vectorwise z-score of the data in A with center 0 and standard deviation 1.
If A is a vector, then normalize operates on the entire vector.
If A is a matrix, table, or timetable, then normalize operates on each column of data separately.
If A is a multidimensional array, then normalize operates along the first array dimension whose size does not equal 1. "
  5 Kommentare
madhan ravi
madhan ravi am 19 Jun. 2020
It is exactly the same as what Sami suggested.
AS
AS am 19 Jun. 2020
Bearbeitet: AS am 19 Jun. 2020
yes.but it would not give me the all normalized columns

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by