MATLAB Answers

jenifer

matrix normalization in matlab

Asked by jenifer
on 30 Jan 2013

hi.. i want normalize a matrix (129 x 128)..please help me with matlab codes

  0 Comments

Products

No products are associated with this question.

3 Answers

Answer by Thorsten
on 30 Jan 2013
 Accepted answer

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

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

  0 Comments


Answer by Jing
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.

  0 Comments


Matt J
Answer by Matt J
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(:)))

  3 Comments

Jan Simon
on 30 Jan 2013

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

jenifer
on 30 Jan 2013

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

Jan Simon
on 30 Jan 2013

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


Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply today