How to normalize given matrix in the range of [-11] ?

조회 수: 2 (최근 30일)
Kunal yawle
Kunal yawle 2013년 4월 27일
%# Decide the labels and normalize instance matrix into range [1, -1] [train_inp avgMatrix mRows mCols] = getNormalMatrix('SVMDATA2.xlsx','Oct','A1:C1464');

답변 (1개)

Iman Ansari
Iman Ansari 2013년 4월 27일
Hi.
A=randi(100,[10 10 10]);
% Between [0 1]
A=(A-min(A(:)))./(max(A(:))-min(A(:)));
A=2.*A -1;
  댓글 수: 1
Kunal yawle
Kunal yawle 2013년 4월 29일
thank you very much.... the code works..!!!

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

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by