1 страниц (15 вхождений)
number of a row in an array - HELP How do you get the number of a row, of a matrix? - Сообщения
#1 Опубликовано: 26.03.2021 23:40:35
Hi guys
Do you know how to get the number of a row in an array?
ie I have a 5 * 2 array, I want to know what is the number of a particular row
¿Cómo se obtiene el número de una fila, de una matriz?
How do you get the number of a row, of a matrix?
I do not speak English, I hope you can understand me with the following image
[albumimg]1629[/albumimg]
Do you know how to get the number of a row in an array?
ie I have a 5 * 2 array, I want to know what is the number of a particular row
¿Cómo se obtiene el número de una fila, de una matriz?
How do you get the number of a row, of a matrix?
I do not speak English, I hope you can understand me with the following image
[albumimg]1629[/albumimg]
#3 Опубликовано: 27.03.2021 07:32:48
Look within!... The secret is inside you.
Best Regards
Eng. NDTM Amarasekera - Sri Lanka
3 пользователям понравился этот пост
#4 Опубликовано: 27.03.2021 08:33:47
WroteDo you know how to get the number of a row in an array?
These 4 are from a much larger compendium.
You will go a long route with them.
Jean
Utilities Matrix Truth Table [Locate row_col].sm (45 КиБ) скачан 40 раз(а).
Utilities Matrix Locate Array1 Array2.sm (70 КиБ) скачан 33 раз(а).
Utilities Matrix Truth Table [Locate row_col] COMPANION.sm (153 КиБ) скачан 43 раз(а).
Utilities Matrix Treasury_1.sm (423 КиБ) скачан 33 раз(а).
1 пользователям понравился этот пост
Erick Valentino 06.05.2021 07:32:00
#5 Опубликовано: 06.05.2021 07:35:13
#6 Опубликовано: 06.05.2021 08:21:02
#7 Опубликовано: 06.05.2021 09:49:36
#8 Опубликовано: 27.07.2023 16:04:49
#9 Опубликовано: 27.07.2023 22:14:46
Wrotehey,
i have a some problem.
i hope someone can solve this problem too.
in the first exampe "match" its not working but in the second example it works. i dont know why
Hi Beyaz,
For first warning, row() expect a real pure number for second argument.
Your findrows() result is a number with N unit.
Due to your second problem;
I think commas in your subscripts makes the bug.
When they are deleted, your function match() works.
Regards
PS: Please provide your problematic file next time.
Rewriting your entire screenshot is cumbersome.
match.sm (10 КиБ) скачан 31 раз(а).
#10 Опубликовано: 28.07.2023 09:27:38
More utilities were designed and available.
These 4 will go a long route ... projects.
Created Studio, sanity checked Solver 30405.
Utilities Matrix Locate Array1 Array2.sm (70 КиБ) скачан 28 раз(а).
Utilities Matrix FindIndex DUAL COMPANION Copy.sm (108 КиБ) скачан 24 раз(а).
Utilities Matrix FindIndexKey COMPANION QUICK Copy.sm (89 КиБ) скачан 26 раз(а).
Utilities Matrix FindIndexKey COMPANION QUICK.sm (89 КиБ) скачан 28 раз(а).
These 4 will go a long route ... projects.
Created Studio, sanity checked Solver 30405.
Utilities Matrix Locate Array1 Array2.sm (70 КиБ) скачан 28 раз(а).
Utilities Matrix FindIndex DUAL COMPANION Copy.sm (108 КиБ) скачан 24 раз(а).
Utilities Matrix FindIndexKey COMPANION QUICK Copy.sm (89 КиБ) скачан 26 раз(а).
Utilities Matrix FindIndexKey COMPANION QUICK.sm (89 КиБ) скачан 28 раз(а).
#11 Опубликовано: 28.07.2023 16:32:39
WroteWrotehey,
i have a some problem.
i hope someone can solve this problem too.
in the first exampe "match" its not working but in the second example it works. i dont know why
Hi Beyaz,
For first warning, row() expect a real pure number for second argument.
Your findrows() result is a number with N unit.
Due to your second problem;
I think commas in your subscripts makes the bug.
When they are deleted, your function match() works.
Regards
PS: Please provide your problematic file next time.
Rewriting your entire screenshot is cumbersome.
match.sm (10 КиБ) скачан 31 раз(а).
thanks overlord
sorry, you are right, next time i will add the file.
i tried it but it doesnt work. this time i add the file.
vogt.sm (636 КиБ) скачан 25 раз(а).
//I solved it like this
#12 Опубликовано: 28.07.2023 17:03:03
#13 Опубликовано: 29.07.2023 08:22:05
Attach an image of a typical 6 x 4 matrix 4 decimals.
From there, say what you want to extract.
That will ease the guidance, while avoiding confusion.
From there, say what you want to extract.
That will ease the guidance, while avoiding confusion.
#14 Опубликовано: 05.01.2024 16:37:40
#15 Опубликовано: 06.01.2024 03:48:08
The result of findrows() is a matrix, even if there is only one match (exept for no matches, then the result is the number zero)
Converting it to a scalar, seems to help. The same could be applied to the overall result to remove the matrix.
Yet, there is a shorter way to get the index. This, however, won't work for multiple matches.
Файл не найден.Файл не найден.
Converting it to a scalar, seems to help. The same could be applied to the overall result to remove the matrix.
Yet, there is a shorter way to get the index. This, however, won't work for multiple matches.
Файл не найден.Файл не найден.
Martin Kraska
Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 страниц (15 вхождений)
-
Новые сообщения
-
Нет новых сообщений