How can solve the problem? please!
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
abduall hassn
el 27 de Ag. de 2016
Editada: abduall hassn
el 3 de Nov. de 2016
p=[148
249
357
547
854
1
1184
996
966
679
586
503
281
1
110
89
58
68
28
19
16
6
13
7
4
2
1
12]
this equation
and this code
xn = zeros(size(p))
mx=max (p(2));
mn=min (p(1));
mmd=mx-mn;
for i=1:(P,1)
xn(i,:)=(p(i,:)-mn)./(mmd)*(mx-mn)+mn
end
p is data for normalization
I applied min and max equation that is mention above.
When I applied the code the output wrong, please can you tell where the wrong in the code
3 comentarios
Walter Roberson
el 27 de Ag. de 2016
Is the previous question solved relative to what you asked there? If so then you should Accept one of the solutions. But if what you were wanting was just to correct the question, then you should have edited that one instead of starting a new question.
Respuesta aceptada
Pawel Ladosz
el 27 de Ag. de 2016
Editada: Pawel Ladosz
el 27 de Ag. de 2016
Hi Abudlla,
It appears the mistake is in:
(mx-mn)+mn
this line should be (new_max_a-new_min_a)+new_min_a and in your code it is: (max_a+min_a)+min_a.
In other words you are lacking variables for new_max_a and new_min_a.
2 comentarios
Más respuestas (0)
Ver también
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!