1 páginas (15 elementos)
number of a row in an array - HELP How do you get the number of a row, of a matrix? - Mensajes
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

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

A 2 usuarios les gustó este mensaje
To find the indices of an array of values.
Cheers.....
Find_Row_Num.sm (95,29 KiB) descargado 1622 vez(es).

Cheers.....
Find_Row_Num.sm (95,29 KiB) descargado 1622 vez(es).

Look within!... The secret is inside you.
Best Regards
Eng. NDTM Amarasekera - Sri Lanka
A 3 usuarios les gustó este mensaje
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,47 KiB) descargado 1374 vez(es).
Utilities Matrix Locate Array1 Array2.sm (70,25 KiB) descargado 1588 vez(es).
Utilities Matrix Truth Table [Locate row_col] COMPANION.sm (153,6 KiB) descargado 1485 vez(es).
Utilities Matrix Treasury_1.sm (423,07 KiB) descargado 1634 vez(es).
A 1 usuarios les gustó este mensaje
Erick Valentino 6/5/2021 7:32:00
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,75 KiB) descargado 1546 vez(es).

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,46 KiB) descargado 1555 vez(es).
Utilities Matrix FindIndex DUAL COMPANION Copy.sm (108,1 KiB) descargado 1821 vez(es).
Utilities Matrix FindIndexKey COMPANION QUICK Copy.sm (89,52 KiB) descargado 1665 vez(es).
Utilities Matrix FindIndexKey COMPANION QUICK.sm (89,51 KiB) descargado 1614 vez(es).
These 4 will go a long route ... projects.
Created Studio, sanity checked Solver 30405.
Utilities Matrix Locate Array1 Array2.sm (70,46 KiB) descargado 1555 vez(es).
Utilities Matrix FindIndex DUAL COMPANION Copy.sm (108,1 KiB) descargado 1821 vez(es).
Utilities Matrix FindIndexKey COMPANION QUICK Copy.sm (89,52 KiB) descargado 1665 vez(es).
Utilities Matrix FindIndexKey COMPANION QUICK.sm (89,51 KiB) descargado 1614 vez(es).
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,75 KiB) descargado 1546 vez(es).
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,54 KiB) descargado 1690 vez(es).
//I solved it like this
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.
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.
Archivo no encontrado.Archivo no encontrado.
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.
Archivo no encontrado.Archivo no encontrado.
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
1 páginas (15 elementos)
- Nuevos mensajes
- Sin mensajes nuevos




