Borrar filtros
Borrar filtros

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

1 visualización (últimos 30 días)
Mariem Harmassi
Mariem Harmassi el 11 de Oct. de 2012
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

Respuesta aceptada

Matt Fig
Matt Fig el 11 de Oct. de 2012
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 comentarios
Matt Fig
Matt Fig el 11 de Oct. de 2012
As you can check:
1.2345678e7 - 1234567
ans =
0

Iniciar sesión para comentar.

Más respuestas (1)

Walter Roberson
Walter Roberson el 11 de Oct. de 2012
Yes. 1.8509e+007 is approximately 18509000
  4 comentarios
Mariem Harmassi
Mariem Harmassi el 11 de Oct. de 2012
Thank u Matt , i know this it means that i should analyse the code there is an error not this one but perhaps another :/
Mariem Harmassi
Mariem Harmassi el 11 de Oct. de 2012
Don't underestimate human stupidity especially the one executed by machine ;ppp I am searching for this stupidity ordered :p

Iniciar sesión para comentar.

Categorías

Más información sobre Get Started with MATLAB en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by