how to normalize data between 0 and 1 , each column?

조회 수: 1 (최근 30일)
helia mb
helia mb 2016년 8월 17일
편집: helia mb 2016년 8월 17일
i have data that has 13 column and 194 row. i want to normalize each column between 0 and 1 and i want to use min_max method. what should i do? i don't know matlab a lot. plz help me. thank you.

채택된 답변

Stephen23
Stephen23 2016년 8월 17일
편집: Stephen23 2016년 8월 17일
This will normalize each column (assuming no NaN, Inf, or complex):
x = [min(a,[],1);max(a,[],1)]
b = bsxfun(@minus,a,x(1,:));
b = bsxfun(@rdivide,b,diff(x,1,1))
  댓글 수: 6
helia mb
helia mb 2016년 8월 17일
i really appreciate.....thank you :)))
helia mb
helia mb 2016년 8월 17일
i want to use this new normalize data again. what ever thank you

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by