Advertisement
Sawy3R11

Untitled

Apr 25th, 2017
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.33 KB | None | 0 0
  1. load wino.txt
  2. P = wino(:, 2:14); %dane wejsciowe
  3. T = wino(:, 1); %dane wyjsciowe
  4.  
  5. % normalizacja danych
  6. maxP=max(P);       
  7. minP=min(P);       
  8. Pn=zeros(size(P));
  9. for i=1:length(maxP),
  10.     Pn(:,i) = (1-(-1))*(P(:,i)-minP(i))/(maxP(i)-minP(i)) + (-1);
  11. %     (ymax-ymin)*(x-xmin)/(xmax-xmin) + ymin;
  12. end
  13.  
  14. Pn = Pn';
  15. T = T';
  16. T = T + 1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement