Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

manipulate list in mathematica with select

I have imported some data into Mathematica. The data will look similar to

{{0,2},{2,3},{4,3},{5,4},{8,4}}

I want to throw out all elements for which the x-values are smaller than a given value or create a new list that contains the data for which the x-values are larger than this value. I assume that Select should do the job but I don't know how.

Thanks in advance for the help.

like image 375
Lucas Avatar asked Nov 30 '25 17:11

Lucas


1 Answers

How about

 data = {{0,2},{2,3},{4,3},{5,4},{8,4}};
 filtered = Select[data, First[#]>3&];

where you replace 3 with your given value?

like image 106
Karsten W. Avatar answered Dec 05 '25 00:12

Karsten W.



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!