choose minimum positive number

choose minimum positive number - 消息

#1 已发布: 2020/5/27 15:51:45
Wojtek

Wojtek

0个赞,共2个帖子。

组: User

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
#2 已发布: 2020/5/27 19:40:09
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

lookup.JPG
1位用户喜欢此帖子
frapuano 2020/5/28 05:09:00
#3 已发布: 2020/5/27 21:03:55
Davide Carpi

Davide Carpi

1,443个赞,共2,936个帖子。

组: Moderator

Also

2020-05-28 02_02_24-Window.png

(move the equal in the booleans from the leftmost addendum to the rightmost if you don't want to match zeros from the original vector as positive values)
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1位用户喜欢此帖子
frapuano 2020/5/28 05:09:00
#4 已发布: 2020/5/27 21:56:07
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Truth table in more general, multi purpose.

Utilities Matrix Truth Table [Locate row_col].sm (43.62 KiB)已下载 1030 次。
1位用户喜欢此帖子
frapuano 2020/5/28 05:09:00
#5 已发布: 2020/5/28 01:53:56
Alvaro

Alvaro

1,139个赞,共1,805个帖子。

组: User

Hi. Another couple of solutions.

problem.sm (13.97 KiB)已下载 1221 次。

Best regards.
Alvaro.
2位用户喜欢此帖子
frapuano 2020/5/28 05:09:00, sergio 2020/5/28 05:33:00
#6 已发布: 2020/5/28 09:29:32
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

More minimalist code.

FindIdx.PNG
1位用户喜欢此帖子
sergio 2020/5/28 10:10:00
  • 有新帖
  • 无新帖