How to rescale table columns

10 Ansichten (letzte 30 Tage)
Anel Ruiz
Anel Ruiz am 17 Jun. 2020
Beantwortet: Akira Agata am 17 Jun. 2020
Hi,
How can I rescale the columns of a table. I have a table of n columns, and I want to divide each column by the max of that specific column so that each column gets a value between 0 and 1.

Akzeptierte Antwort

Akira Agata
Akira Agata am 17 Jun. 2020
normalize function can do that task, like:
rescaledTable = normalize(yourTable,'range');

Weitere Antworten (0)

Kategorien

Mehr zu Tables finden Sie in Help Center und File Exchange

Produkte


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by