Match function

Match function - Messages

#1 Posted: 11/22/2011 3:01:19 PM
Marijan

Marijan

0 likes in 2 posts.

Group: 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 Posted: 11/22/2011 5:34:55 PM
Radovan Omorjan

Radovan Omorjan

325 likes in 2052 posts.

Group: 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 Posted: 11/22/2011 5:59:58 PM
Marijan

Marijan

0 likes in 2 posts.

Group: User

Thank you very much for your quick answer.
#4 Posted: 10/13/2022 6:19:16 PM
vinicius

vinicius

0 likes in 1 posts.

Group: User

Can I acess this function?
#5 Posted: 10/13/2022 10:04:54 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: 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 Posted: 10/14/2022 9:12:57 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: 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 Posted: 10/25/2022 11:41:36 AM
Oscar Campo

Oscar Campo

124 likes in 298 posts.

Group: 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 KiB) downloaded 69 time(s).
1 users liked this post
Alvaro Diaz Falconi 10/26/2022 2:46:00 PM
#8 Posted: 10/26/2022 4:26:45 PM
Oscar Campo

Oscar Campo

124 likes in 298 posts.

Group: Moderator

Wrote



match.sm (11 KiB) downloaded 69 time(s).



Some good improvements suggested by Razonar: versions of match() function
1 users liked this post
Alvaro Diaz Falconi 10/26/2022 6:07:00 PM
  • New Posts New Posts
  • No New Posts No New Posts