How to rescale table columns

6 次查看(过去 30 天)
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.

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Tables 的更多信息

产品


版本

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by