How to rescale table columns

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.

 Respuesta aceptada

Akira Agata
Akira Agata el 17 de Jun. de 2020

0 votos

normalize function can do that task, like:
rescaledTable = normalize(yourTable,'range');

Más respuestas (0)

Categorías

Productos

Versión

R2020a

Etiquetas

Preguntada:

el 17 de Jun. de 2020

Respondida:

el 17 de Jun. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by