I need to normalize a vector size 82x1

I have a vector 82x1 with random numbers and i need to put this vector with values between 0 to 1 and keep the same size 82x1.

Respuestas (1)

Thorsten
Thorsten el 26 de Oct. de 2015
x = randn(82,1);
x = (x - min(x))/(max(x)-min(x));

La pregunta está cerrada.

Etiquetas

Preguntada:

el 26 de Oct. de 2015

Cerrada:

el 20 de Ag. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by