Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

I have matrix of 200*10 it has values between 50 and 150 I have to normalize it that is I want to see values less than one.

1 vue (au cours des 30 derniers jours)
I know one way of doing is to divide it by max value but I want to know any other way i.e built in function of matlab or any other mathematical formula which shifts all values to less than one. Kindly do not mention sigmoid function as I have tried.
Thanks
  3 commentaires
shane watson
shane watson le 28 Jan 2017
What I am doing is just to make my matrix values less than 1.I have matrix who max value is 90 so if I divide all values by 90 I will have the values less than 1 but this way I am not satisfied as I need some other way to do this step.
Thanks
Image Analyst
Image Analyst le 28 Jan 2017
WHY do you need some other way? And, anyway, I gave you one below.

Réponses (1)

Image Analyst
Image Analyst le 28 Jan 2017
There is a built-in function called mat2gray() in the Image Processing Toolbox, but it maps the min value to 0 and the max value to 1. This is slightly different than simply dividing by the max, which does not put the min value at 0 (unless it is already 0).

Cette question est clôturée.

Tags

Aucun tag saisi pour le moment.

Community Treasure Hunt

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

Start Hunting!

Translated by