Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function [N] = mapminmax(P, ymin, ymax)
- xmax = max(P');
- xmin = min(P');
- N = zeros(size(P));
- for i = 1:length(xmax)
- N(i, :) = (ymax - ymin) * (P(i, :) - xmin(i)) / (xmax(i) - xmin(i)) + ymin;
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement