Match function

Match function - 消息

#1 已发布: 2011/11/22 15:01:19
Marijan

Marijan

0个赞,共2个帖子。

组: User

Hello, I'm searching for some function like match(z, A)(Looks in a vector or matrix, A, for a given value, z, and returns the index (indices) of its positions in A) in Mathcad.
I will appreciate any kind of help.
#2 已发布: 2011/11/22 17:34:55
Radovan Omorjan

Radovan Omorjan

325个赞和1个踩,共2,052个帖子。

组: Moderator

Hello and welcome ,

There is no such function in the function list. Therefore, we could make a user defined one. I hope this will get the job done.
[LIVE width=443 height=419]http://smath.info/live/?file=3273[/LIVE]

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#3 已发布: 2011/11/22 17:59:58
Marijan

Marijan

0个赞,共2个帖子。

组: User

Thank you very much for your quick answer.
#4 已发布: 2022/10/13 18:19:16
vinicius

vinicius

0个赞,共1个帖子。

组: User

Can I acess this function?
#5 已发布: 2022/10/13 22:04:54
Jean Giraud

Jean Giraud

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

组: User

Wrote

Can I access this function ?


findrows from Smath menu f(x) may just be what you need.
Truncate the matrix/vector to avoid residuals smaller than 10^-15
For more complicated investigation, visit Samples Find Index
posted few days ago ... lot more involved.
Cheers ... Jean.

#6 已发布: 2022/10/14 09:12:57
Jean Giraud

Jean Giraud

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

组: User

findrows has limited use unless for specific end use wrt Bolean '0'
For long square/rectangular matrix, better use the assisted code.

findrows.PNG
#7 已发布: 2022/10/25 11:41:36
Oscar Campo

Oscar Campo

135个赞,共309个帖子。

组: Moderator

Wrote

Hello, I'm searching for some function like match(z, A)(Looks in a vector or matrix, A, for a given value, z, and returns the index (indices) of its positions in A) in Mathcad.
I will appreciate any kind of help.



match.PNG


match.sm (11.95 KiB)已下载 1804 次。
1位用户喜欢此帖子
Alvaro 2022/10/26 14:46:00
#8 已发布: 2022/10/26 16:26:45
Oscar Campo

Oscar Campo

135个赞,共309个帖子。

组: Moderator

Wrote



match.sm (11.95 KiB)已下载 1804 次。



Some good improvements suggested by Razonar: versions of match() function
1位用户喜欢此帖子
Alvaro 2022/10/26 18:07:00
  • 有新帖
  • 无新帖