Find rows of matrix

Find rows of matrix - Boolian Test - Mensajes

#1 Publicado: 26/6/2023 14:59:27
RegRetired

RegRetired

8 me gusta en 144 mensajes.

Grupo: User

How do I find all rows of a matrix M where column n contains all numbers ≤ x.

I cannot figure out how to use findrows for this. If my text expression is max(M) it works fine, but
the ≤ test does not work for me.

An example would be much appreciated.
Reg CurryLoveland, CO
#2 Publicado: 26/6/2023 15:11:42
RegRetired

RegRetired

8 me gusta en 144 mensajes.

Grupo: User

Oops, I meant test expression, not text expression.
Reg CurryLoveland, CO
#3 Publicado: 26/6/2023 17:24:48
Alvaro

Alvaro

1.139 me gusta en 1.805 mensajes.

Grupo: User

Hi. This is an option.

MFind.sm (14,22 KiB) descargado 1534 vez(es).
MFind.pdf (58,83 KiB) descargado 961 vez(es).

Best regards.
Alvaro.
A 1 usuarios les gustó este mensaje
NDTM Amarasekera 27/6/2023 7:38:00
#4 Publicado: 26/6/2023 17:56:46
RegRetired

RegRetired

8 me gusta en 144 mensajes.

Grupo: User

Great! Thanks for all your help.
Reg CurryLoveland, CO
#5 Publicado: 27/6/2023 12:13:11
NDTM Amarasekera

NDTM Amarasekera

130 me gusta en 352 mensajes.

Grupo: User

Another method

Array_Pos.sm (14,76 KiB) descargado 1439 vez(es).

Array_Pos.png
Look within!... The secret is inside you. Best Regards Eng. NDTM Amarasekera - Sri Lanka
#6 Publicado: 27/6/2023 14:51:06
RegRetired

RegRetired

8 me gusta en 144 mensajes.

Grupo: User

Ndtma,
Thanks; however, I don’t understand the large numbers in your answer, which are greater than the size of the matrix.

Sorry for my lack of understanding.
Reg CurryLoveland, CO
#7 Publicado: 27/6/2023 16:48:45
Davide Carpi

Davide Carpi

1.443 me gusta en 2.936 mensajes.

Grupo: Moderator

Wrote

Ndtma,
Thanks; however, I don’t understand the large numbers in your answer, which are greater than the size of the matrix.

Sorry for my lack of understanding.



It's the item position by linear indexing. Elements can be accessed using a single index, that is the position sorted by rows (base 1). f.e. The 2nd element in the 3rd row is indexed (3-1)*cols(matrix)+2
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#8 Publicado: 27/6/2023 17:41:12
RegRetired

RegRetired

8 me gusta en 144 mensajes.

Grupo: User

Okay, thanks. More complicated than I was looking for. My matrix is 2000x2. But, the responses gave me a clue on how to write my own that is similar to the MATHCAD match function.

Because PTC no longer supports MATHCAD 15 and the future of getting a new license if my computer fails is in question, SMATH is a lifesaver. I am gradually converting my important files to SMATH. SMATH is a real service and excellent option for those in my situation.

I am gradually becoming accustomed to SMATH. I do have one more question on plots. If I click in an XY plot to change some formatting and I accidentally hit my mouse wheel, the plot changes the zoom level. It’s not obvious how to return to the original view. If I close the file and reopen, it is back to normal. At first I thought this was a bug, but searching the forum, I see it is a feature. Is there a simple way to return to the original view when I accidentally move my mouse wheel.

Thanks again.
Reg CurryLoveland, CO
#9 Publicado: 27/6/2023 18:16:02
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: User

Wrote

I am gradually becoming accustomed to SMATH.I do have one more question on plots.If I click in an XY plot to change some formatting and I accidentally hit my mouse wheel, the plot changes the zoom level.It’s not obvious how to return to the original view.If I close the file and reopen, it is back to normal.At first I thought this was a bug, but searching the forum, I see it is a feature.Is there a simple way to return to the original view when I accidentally move my mouse wheel.


I mentioned that before, about your spoiled X_Y plot
f(x), data ... quick plot is insensitive to command wrt the graph plot.
Differently the X_Y plot will scrap the limits if you slide the graph.
Never put the mouse in the X_Y plot. Resize [X,Y] from the system.
#10 Publicado: 27/6/2023 18:53:46
overlord

overlord

600 me gusta en 1.381 mensajes.

Grupo: Moderator

Wrote

Is there a simple way to return to the original view when I accidentally move my mouse wheel.

Thanks again.


You can try to learn setprop() function for X-Y Plot.
https://en.smath.com/forum/yaf_postst1774_X-Y-Plot-Region.aspx
https://en.smath.com/forum/yaf_postsm59088_X-Y-Plot-Region.aspx#post59088

Here is a simple demonstration I posted before.
DPT_NV plot.sm (20,47 KiB) descargado 1514 vez(es).

2023-02-27_01-50.png

Regards
#11 Publicado: 27/6/2023 19:42:06
RegRetired

RegRetired

8 me gusta en 144 mensajes.

Grupo: User

Thanks. Very helpful!
Reg CurryLoveland, CO
  • Nuevos mensajes
  • Sin mensajes nuevos