on 30 Jan 2013

## Products

No products are associated with this question.

### Thorsten (view profile)

on 30 Jan 2013

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

```Anorm = (A - min2(A))/(max2(A) - min2(A));
```

### Jing (view profile)

on 30 Jan 2013

You can use 'normc' or 'normr' for normalization. 'c' or 'r' stands for columns or rows that you want to normalize.

### Matt J (view profile)

on 30 Jan 2013

You need to decide how you want to define the amplitude of the matrix first. Maybe you want this

` normalized = A/norm(A);`

or maybe this

` normalized = A/max(abs(A(:)))`

Jan Simon

### Jan Simon (view profile)

on 30 Jan 2013

Or perhaps "normalization" means a range of [0,1]?

jenifer

### jenifer (view profile)

on 30 Jan 2013

ya... but how can i get a single value from whole matrix...

Jan Simon

### Jan Simon (view profile)

on 30 Jan 2013

Please, jenifer, we have asked you to define "normalization" exactly. It wastes time if we guess what you mean.

#### Join the 15-year community celebration.

Play games and win prizes!

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi