How to normalize given matrix in the range of [-11] ?
Afficher commentaires plus anciens
%# Decide the labels and normalize instance matrix into range [1, -1] [train_inp avgMatrix mRows mCols] = getNormalMatrix('SVMDATA2.xlsx','Oct','A1:C1464');
Réponses (1)
Iman Ansari
le 27 Avr 2013
Hi.
A=randi(100,[10 10 10]);
% Between [0 1]
A=(A-min(A(:)))./(max(A(:))-min(A(:)));
A=2.*A -1;
1 commentaire
Kunal yawle
le 29 Avr 2013
Catégories
En savoir plus sur Aerospace Blockset dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!