Match function

Match function - Сообщения

#1 Опубликовано: 22.11.2011 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 Опубликовано: 22.11.2011 17:34:55
Radovan Omorjan

Radovan Omorjan

325 сообщений из 2052 понравились пользователям.

Группа: 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 Опубликовано: 22.11.2011 17:59:58
Marijan

Marijan

0 сообщений из 2 понравились пользователям.

Группа: User

Thank you very much for your quick answer.
#4 Опубликовано: 13.10.2022 18:19:16
vinicius

vinicius

0 сообщений из 1 понравились пользователям.

Группа: User

Can I acess this function?
#5 Опубликовано: 13.10.2022 22:04:54
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: 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 Опубликовано: 14.10.2022 09:12:57
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: 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 Опубликовано: 25.10.2022 11:41:36
Oscar Campo

Oscar Campo

124 сообщений из 298 понравились пользователям.

Группа: 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 КиБ) скачан 70 раз(а).
1 пользователям понравился этот пост
Alvaro Diaz Falconi 26.10.2022 14:46:00
#8 Опубликовано: 26.10.2022 16:26:45
Oscar Campo

Oscar Campo

124 сообщений из 298 понравились пользователям.

Группа: Moderator

Wrote



match.sm (11 КиБ) скачан 70 раз(а).



Some good improvements suggested by Razonar: versions of match() function
1 пользователям понравился этот пост
Alvaro Diaz Falconi 26.10.2022 18:07:00
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений