[Scilab-users] problem with max and min function ...
Paul Carrico
paul.carrico at free.fr
Wed Dec 19 10:26:29 CET 2012
again,
If I had a complex in a vector, then the following code should lead to
non-zero values, right ?
But it's not the case ...
Paul
A = imult(pb_vect);
real_A = real(A);
size(real_A); find(real_A <> 0)
imag_A = imag(A);
size(imag_A); find(imag_A == 0)
answer :
ans =
[]
ans =
[]
-----Message d'origine-----
De : users-bounces at lists.scilab.org [mailto:users-bounces at lists.scilab.org]
De la part de cpt_nemo
Envoyé : mercredi 19 décembre 2012 08:32
À : users at lists.scilab.org
Objet : Re: [Scilab-users] problem with max and min function ...
Seems that your vector is made of complex numbers with imaginary = 0.
Test the following:
t=2+0*%i
min(t)
You will get the same error message.
--> min(real(pb_vector))
--
View this message in context:
http://mailinglists.scilab.org/Scilab-users-problem-with-max-and-min-functio
n-tp4025536p4025537.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at
Nabble.com.
_______________________________________________
users mailing list
users at lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users
More information about the users
mailing list