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.

답변 (1개)

Thorsten
Thorsten 2015년 10월 26일

0 개 추천

x = randn(82,1);
x = (x - min(x))/(max(x)-min(x));

이 질문은 마감되었습니다.

질문:

2015년 10월 26일

마감:

2021년 8월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by