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

1 Ansicht (letzte 30 Tage)
Kunal yawle
Kunal yawle am 27 Apr. 2013
%# Decide the labels and normalize instance matrix into range [1, -1] [train_inp avgMatrix mRows mCols] = getNormalMatrix('SVMDATA2.xlsx','Oct','A1:C1464');

Antworten (1)

Iman Ansari
Iman Ansari am 27 Apr. 2013
Hi.
A=randi(100,[10 10 10]);
% Between [0 1]
A=(A-min(A(:)))./(max(A(:))-min(A(:)));
A=2.*A -1;

Kategorien

Mehr zu Linear Algebra finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by