Normalizing a vector - MATLAB Cody - MATLAB Central

Problem 51635. Normalizing a vector

Difficulty:Rate
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

31.25% Correct | 68.75% Incorrect
Last Solution submitted on May 04, 2025

Problem Comments

Solution Comments

Show comments
PIVlab surpasses 100K all-time File Exchange downloads
During the past twelve months, PIVlab, a MATLAB Community Toolbox for particle...
2
4
LLMs with MATLAB updated to support the latest OpenAI Models
Large Languge model with MATLAB, a free add-on that lets you access...
2
4

Problem Recent Solvers36

Suggested Problems

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!
Go to top of page