MATLAB: How to extract specific row by using filter, F.e I need take first row which <19.78 and last row also which <19.78 See 2 column

floating pointMATLAB and Simulink Student Suitematrix manipulation

2458271.02662037 63.9235033523209 0
2458271.02696759 62.0302230678728 0
2458271.02731481 60.1369634812004 0
2458271.02766204 58.2437255467078 0
2458271.02800926 56.3505101232625 0
2458271.02835648 54.4573179729295 0
2458271.0287037 52.5641497611019 0
2458271.02905093 50.6710060576169 0
2458271.02939815 48.7778873394466 0
2458271.02974537 46.8847939951167 0
2458271.03009259 44.9917263310377 0
2458271.03043981 43.0986845806308 0
2458271.03078704 41.2056689163093 0
2458271.03113426 39.3126794658491 0
2458271.03148148 37.4197163337651 0
2458271.0318287 35.526779629929 0
2458271.03217593 33.633869507741 0
2458271.03252315 31.7409862155886 0
2458271.03287037 29.8481301675917 0
2458271.03321759 27.955302041875 0
2458271.03356481 26.0625029209036 0
2458271.03391204 24.1697344957776 0
2458271.03425926 22.2769993729954 0
2458271.03460648 20.3843015494144 0
2458271.0349537 18.4916471757816 1
2458271.03530092 16.5990458389394 1
2458271.03564815 14.7065128289371 1
2458271.03599537 12.814073409504 1
2458271.03634259 10.9217715194614 1
2458271.03668981 9.02968940296533 1
2458271.03703704 7.1379984331324 1
2458271.03738426 5.24711977872655 1
2458271.03773148 3.35842717505485 1
2458271.0380787 1.48032499266432 1
2458271.03842592 0.518962525504594 1
2458271.03877315 2.347980507066 1
2458271.03912037 4.23350476172967 1
2458271.03946759 6.12357180594313 1
2458271.03981481 8.01498024810587 1
2458271.04016204 9.9069728023933 1
2458271.04050926 11.7992788851207 1
2458271.04085648 13.6917784463677 1
2458271.0412037 15.5844105678183 1
2458271.04155092 17.4771414171709 1
2458271.04189815 19.3699509803846 1
2458271.04224537 21.2628268749919 0
2458271.04259259 23.1557611944439 0
2458271.04293981 25.0487487805833 0
2458271.04328704 26.9417862222301 0
2458271.04363426 28.834871246689 0
2458271.04398148 30.7280023345978 0
2458271.0443287 32.6211784681155 0
2458271.04467592 34.5143989609168 0
2458271.04502315 36.4076633409166 0
2458271.04537037 38.3009712673113 0
2458271.04571759 40.1943224709527 0
2458271.04606481 42.0877167109723 0
2458271.04641204 43.9811537426128 0
2458271.04675926 45.8746332936678 0
2458271.04710648 47.7681550467145 0
2458271.0474537 49.6617186263032 0
2458271.04780092 51.5553235894977 0
2458271.04814815 53.448969419317 0
2458271.04849537 55.342655520485 0
2458271.04884259 57.2363812168117 0
2458271.04918981 59.1301457503825 0
2458271.04953704 61.0239482816659 0
2458271.04988426 62.9177878910165 0
2458271.05023148 64.8116635808555 0
2458271.0505787 66.7055742787352 0
2458271.05092592 68.5995188411322 0
2458271.05127315 70.4934960576331 0
2458271.05162037 72.3875046559074 0
2458271.05196759 74.2815433067724 0
2458271.05231481 76.1756106299244 0
2458271.05266203 78.0697051997387 0
2458271.05300926 79.9638255513806 0
2458271.05335648 81.8579701871553 0
2458271.0537037 83.7521375827534 0
2458271.05405092 85.6463261938508 0
2458271.05439815 87.5405344623565 0
2458271.05474537 89.4347608228883 0
2458271.05509259 91.3290037089129 0
2458271.05543981 93.2232615587402 0
2458271.05578703 95.1175328213413 0
2458271.05613426 97.0118159615996 0
2458271.05648148 98.9061094654524 0
2458271.0568287 100.800411844195 0
2458271.05717592 102.69472163848 0
2458271.05752315 104.58903742144 0
2458271.05787037 106.483357801034 0
2458271.05821759 108.37768142158 0
2458271.05856481 110.272006963956 0
2458271.05891203 112.166333144864 0
2458271.05925926 114.060658714301 0
2458271.05960648 115.954982451604 0
2458271.0599537 117.849303159333 0
2458271.06030092 119.743619654812 0
2458271.06064815 121.637930758991 0
2458271.06099537 123.532235281685 0
2458271.06134259 125.426532003077 0
2458271.06168981 127.320819649873 0
2458271.06203703 129.215096865618 0
2458271.06238426 131.10936217313 0
2458271.06273148 133.003613927275 0
2458271.0630787 134.897850255465 0
2458271.06342592 136.792068981896 0
2458271.06377315 138.686267531114 0
2458271.06412037 140.580442803389 0
2458271.06446759 142.474591012915 0
2458271.06481481 144.368707474551 0
2458271.06516203 146.262786319536 0

Best Answer

a(abs(a-17.8)<1e-4) % use logical indexing with specific tolerance , search floating-point as a tag in this forum for more explanation