cancel
Showing results for
Did you mean:
cancel
Showing results for
Did you mean:

1-Newbie

## choose minimum positive number

hi

for example if A=(a,b,c,d,e) and a=1, b=-3, c=4, d=2, e=-1,

how can I choose "d"(minimum positive number biger than one)

"A" is matrix

1 ACCEPTED SOLUTION

Accepted Solutions
24-Ruby III
(To:mjalali-2)
12 REPLIES 12
24-Ruby III
(To:mjalali-2)

PS Without zeros!

Or a little program

thanks

1-Newbie
(To:mjalali-2)

yes this way is better,tanks alot

this program dont work

24-Ruby III
(To:mjalali-2)

use not a but Re(a) please

1-Newbie
(To:mjalali-2)

L.sw=A

24-Ruby III
(To:mjalali-2)

thanks alot but I want to choose only from real number not from Imaginary numbers

24-Ruby V
(To:mjalali-2)

Maybe that way:

But using the built.in functions match and trim you get into troubles if all values in A a bigger than 1.

Solution can be to write a program for your task or rewrite match and trim to work even if nothing has to be trimmed.

Werner

1-Newbie
(To:Werner_E)

if I have this matrix how can I choose 4.97?

24-Ruby III
(To:mjalali-2)

24-Ruby I
(To:mjalali-2)

In this case you need to use "match ()" built-in function:

Announcements