Answer to Question #168577 in MatLAB for Fredrick Moleleki

Question #168577

The formula for normalizing data-in a vector x-into the range [0,1] is given by


Z1=(x1-min(x))/(max(x)-min(x))

implement the formula above in a function


1
Expert's answer
2021-03-03T16:22:22-0500
function [x_norm] = normalize(x)
%function normalizes data in a vector x into the range [0,1]


x_norm = (x - min(x))/(max(x)-min(x));
end

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS