problem with the min function or the 1.8509e+007 ??

Hello everybody I have a vector with three input values so this is how my vector is :
F=[ss(60,57) ;ss(13,57) ;ss(14,57)]
F(1)
ans =
18471736
>> F(2)
ans =
1.8509e+007
>> F(3)
ans =
23963413
So i called the min function as this : [C,I]=min(F); >> C
C =
18471736
>> I
I =
1
Does 18471736 inf to 1.8509e+007

 채택된 답변

Matt Fig
Matt Fig 2012년 10월 11일

1 개 추천

There is no problem that I can see.
Yes, 1.847e7 is less than 1.851e7 and 2.396e7. Why would you expect anything else?

댓글 수: 5

This is the three values 18471736,1.8509e+007,23963413 but what about the 'e' number ??
The 'e' in 1.8509e+007 is short for '10^'. This is called scientific notation.
1.8509e+007 this notation is equivalent to 1.8509 * 10^007 ??
As you can check:
1.2345678e7 - 1234567
ans =
0

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Walter Roberson
Walter Roberson 2012년 10월 11일

0 개 추천

Yes. 1.8509e+007 is approximately 18509000

댓글 수: 4

Mariem Harmassi
Mariem Harmassi 2012년 10월 11일
편집: Mariem Harmassi 2012년 10월 11일
its impossible cauz the three number are 3 by one dissimilarties between face images so The second one is the same person as the one compared to it so logically the second value must be the minimum
Matt Fig
Matt Fig 2012년 10월 11일
편집: Matt Fig 2012년 10월 11일
Mariem, I would venture to guess that you have just learned that MATLAB, like any other language, does exactly what you tell it to do, not what you want it to do.
Thank u Matt , i know this it means that i should analyse the code there is an error not this one but perhaps another :/
Don't underestimate human stupidity especially the one executed by machine ;ppp I am searching for this stupidity ordered :p

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Function Creation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by