HOW TO FIND normalized value of an array?

 Risposta accettata

SRI
SRI il 22 Lug 2014
A = imread('cameraman.tif');
Anorm = (A - min2(A))/(max2(A) - min2(A));

1 Commento

To normalize a matrix such that all values fall in the range [0, 1] use

Accedi per commentare.

Più risposte (0)

Richiesto:

il 22 Lug 2014

Commentato:

SRI
il 22 Lug 2014

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by