Find rows of matrix

Find rows of matrix - Boolian Test - Poruke

#1 Objavljeno: 26. 6. 2023. 14:59:27
RegRetired

RegRetired

8 svidjanja u 144 postova.

Grupa: 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 Objavljeno: 26. 6. 2023. 15:11:42
RegRetired

RegRetired

8 svidjanja u 144 postova.

Grupa: User

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

Alvaro

1.139 svidjanja u 1.805 postova.

Grupa: User

Hi. This is an option.

MFind.sm (14,22 KiB) preuzeto 1566 put(ova).
MFind.pdf (58,83 KiB) preuzeto 1001 put(ova).

Best regards.
Alvaro.
1 korisnika je svidelo ovu objavu
NDTM Amarasekera 27. 6. 2023. 07:38:00
#4 Objavljeno: 26. 6. 2023. 17:56:46
RegRetired

RegRetired

8 svidjanja u 144 postova.

Grupa: User

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

NDTM Amarasekera

130 svidjanja u 352 postova.

Grupa: User

Another method

Array_Pos.sm (14,76 KiB) preuzeto 1474 put(ova).

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

RegRetired

8 svidjanja u 144 postova.

Grupa: 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 Objavljeno: 27. 6. 2023. 16:48:45
Davide Carpi

Davide Carpi

1.444 svidjanja u 2.936 postova.

Grupa: 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 Objavljeno: 27. 6. 2023. 17:41:12
RegRetired

RegRetired

8 svidjanja u 144 postova.

Grupa: 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 Objavljeno: 27. 6. 2023. 18:16:02
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: 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 Objavljeno: 27. 6. 2023. 18:53:46
overlord

overlord

601 svidjanja u 1.382 postova.

Grupa: 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) preuzeto 1546 put(ova).

2023-02-27_01-50.png

Regards
#11 Objavljeno: 27. 6. 2023. 19:42:06
RegRetired

RegRetired

8 svidjanja u 144 postova.

Grupa: User

Thanks. Very helpful!
Reg CurryLoveland, CO
  • Novi postovi
  • Nema novih postova