Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline Marijan  
#1 Posted : 22 November 2011 22:01:19(UTC)
Marijan

Rank: Newbie

Groups: Registered
Joined: 22/11/2011(UTC)
Posts: 2
Man
Location: Serbia

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.

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline omorr  
#2 Posted : 23 November 2011 00:34:55(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
Hello and welcome Good ,

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.
Open in SMath Cloud

Regards,
Radovan

Edited by user 23 November 2011 00:40:15(UTC)  | Reason: Not specified

When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline Marijan  
#3 Posted : 23 November 2011 00:59:58(UTC)
Marijan

Rank: Newbie

Groups: Registered
Joined: 22/11/2011(UTC)
Posts: 2
Man
Location: Serbia

Thank you very much for your quick answer.
Offline vinicius  
#4 Posted : 14 October 2022 00:19:16(UTC)
vinicius

Rank: Newbie

Groups: Registered
Joined: 13/10/2022(UTC)
Posts: 1
Brazil

Can I acess this function?
Offline Jean Giraud  
#5 Posted : 14 October 2022 04:04:54(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: vinicius Go to Quoted Post
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.

Offline Jean Giraud  
#6 Posted : 14 October 2022 15:12:57(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
findrows has limited use unless for specific end use wrt Bolean '0'
For long square/rectangular matrix, better use the assisted code.

findrows.PNG
Offline oscampo  
#7 Posted : 25 October 2022 17:41:36(UTC)
oscampo


Rank: Advanced Member

Groups: Registered
Joined: 10/12/2009(UTC)
Posts: 246
Man
Colombia
Location: Cali, Colombia

Was thanked: 85 time(s) in 65 post(s)
Originally Posted by: Marijan Go to Quoted Post
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 (12kb) downloaded 21 time(s).
thanks 1 user thanked oscampo for this useful post.
on 26/10/2022(UTC)
Offline oscampo  
#8 Posted : 26 October 2022 22:26:45(UTC)
oscampo


Rank: Advanced Member

Groups: Registered
Joined: 10/12/2009(UTC)
Posts: 246
Man
Colombia
Location: Cali, Colombia

Was thanked: 85 time(s) in 65 post(s)
Originally Posted by: oscampo Go to Quoted Post


match.sm (12kb) downloaded 21 time(s).


Some good improvements suggested by Razonar: versions of match() function
thanks 1 user thanked oscampo for this useful post.
on 27/10/2022(UTC)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.