Problem 51635. Normalizing a vector
Normalizing a set of values is an important operation in mathematics, consisting in affinely transforming a set of values in an interval [v_min; v_max] to a set of values in [0; 1].
Complete the function that normalize a gievn matrix M, that is transform all its values between 0 and 1 in an affine way.
For example for the matrix [30, 60, 75 ; 130, 40, 100], the function will return the matrix [0, 0.3, 0.45 ; 1, 0.1, 0.7].
Solution Stats
Problem Comments
-
1 Comment
Nikolaos Nikolaou
on 4 May 2021
you got some accuracy issues eg 2 significant digits in the first test case and more at the other two :)
Solution Comments
Show commentsProblem Recent Solvers35
Suggested Problems
-
Back to basics 8 - Matrix Diagonals
924 Solvers
-
middleAsColumn: Return all but first and last element as a column vector
605 Solvers
-
Matlab Basics - Convert a row vector to a column vector
629 Solvers
-
409 Solvers
-
Find the sides of an isosceles triangle when given its area and height from its base to apex
1911 Solvers
More from this Author53
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!