Match function

Match function - Poruke

#1 Objavljeno: 22. 11. 2011. 15:01:19
Marijan

Marijan

0 svidjanja u 2 postova.

Grupa: 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 Objavljeno: 22. 11. 2011. 17:34:55
Radovan Omorjan

Radovan Omorjan

325 svidjanja i 1 nesvidjanja u 2.052 postova.

Grupa: 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 Objavljeno: 22. 11. 2011. 17:59:58
Marijan

Marijan

0 svidjanja u 2 postova.

Grupa: User

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

vinicius

0 svidjanja u 1 postova.

Grupa: User

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

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: 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 Objavljeno: 14. 10. 2022. 09:12:57
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: 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 Objavljeno: 25. 10. 2022. 11:41:36
Oscar Campo

Oscar Campo

135 svidjanja u 309 postova.

Grupa: 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) preuzeto 1831 put(ova).
1 korisnika je svidelo ovu objavu
Alvaro 26. 10. 2022. 14:46:00
#8 Objavljeno: 26. 10. 2022. 16:26:45
Oscar Campo

Oscar Campo

135 svidjanja u 309 postova.

Grupa: Moderator

Wrote



match.sm (11,95 KiB) preuzeto 1831 put(ova).



Some good improvements suggested by Razonar: versions of match() function
1 korisnika je svidelo ovu objavu
Alvaro 26. 10. 2022. 18:07:00
  • Novi postovi
  • Nema novih postova