Match function

Match function - Mensajes

#1 Publicado: 22/11/2011 15:01:19
Marijan

Marijan

0 me gusta en 2 mensajes.

Grupo: 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 Publicado: 22/11/2011 17:34:55
Radovan Omorjan

Radovan Omorjan

325 me gusta y 1 no me gusta en 2.052 mensajes.

Grupo: 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 Publicado: 22/11/2011 17:59:58
Marijan

Marijan

0 me gusta en 2 mensajes.

Grupo: User

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

vinicius

0 me gusta en 1 mensajes.

Grupo: User

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

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: 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 Publicado: 14/10/2022 9:12:57
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: 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 Publicado: 25/10/2022 11:41:36
Oscar Campo

Oscar Campo

135 me gusta en 309 mensajes.

Grupo: 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) descargado 1784 vez(es).
A 1 usuarios les gustó este mensaje
Alvaro 26/10/2022 14:46:00
#8 Publicado: 26/10/2022 16:26:45
Oscar Campo

Oscar Campo

135 me gusta en 309 mensajes.

Grupo: Moderator

Wrote



match.sm (11,95 KiB) descargado 1784 vez(es).



Some good improvements suggested by Razonar: versions of match() function
A 1 usuarios les gustó este mensaje
Alvaro 26/10/2022 18:07:00
  • Nuevos mensajes
  • Sin mensajes nuevos