Remove duplicate lines in a document

조회 수: 2 (최근 30일)
Dl
Dl 2024년 1월 30일
댓글: Stephen23 2024년 2월 1일
Good morning!
I have a .txt file that is made automatically during a different code. This file contains satellites information.
Information about one satellite contains three strings:
1) Satellite name
2) Satellite information
3) Satellite information
This file can contain information about 500+ satellites but it should look strictly according to the format.
As you can see strings №298 and №301 are name of the same satellite.
Every string must be unique and there cannot be two or more exactly identical lines.
Also very important that number of the strings in the file must be multiple of 3 or the next code won't proceed. Here it's 365 because the previous code makes empty lines and the next code doesn't work.
I need your help to delete exactly identical lines and empty lines and adjust file format.
Thank you in advance

채택된 답변

Stephen23
Stephen23 2024년 1월 30일
편집: Stephen23 2024년 1월 30일
txt = fileread('filteredSatellites.txt')
txt =
'GALAXY 25 (G-25) 1 24812U 97026A 24028.92063380 -.00000078 00000+0 00000+0 0 9992 2 24812 5.1815 77.6349 0007451 274.9760 121.7323 0.99098031 97595 HELLAS-SAT 2 1 27811U 03020A 24029.80451597 -.00000074 00000+0 00000+0 0 9990 2 27811 5.1686 78.0960 0007804 219.4759 110.5401 1.00271922 34129 THURAYA-2 1 27825U 03026A 24030.13765003 .00000137 00000+0 00000+0 0 9998 2 27825 7.5212 34.3905 0002926 271.6304 276.3888 1.00273178 75620 USA 170 1 27875U 03040A 24029.74354905 .00000103 00000+0 00000+0 0 9992 2 27875 8.6358 55.5477 0001561 343.4178 13.4821 1.00266323 22913 INTELSAT 10-02 1 28358U 04022A 24030.12827270 .00000001 00000+0 00000+0 0 9991 2 28358 0.0554 253.5941 0000537 81.5684 198.8720 1.00271603 71911 XTAR-EUR 1 28542U 05005A 24029.80566004 .00000161 00000+0 00000+0 0 9993 2 28542 2.0874 87.5678 0005551 211.9986 147.9852 1.00272414 69470 GALAXY 14 (G-14) 1 28790U 05030A 24030.13547447 .00000166 00000+0 00000+0 0 9999 2 28790 2.7710 85.5178 0001605 225.3129 259.6827 1.00271228 67583 SYRACUSE 3A 1 28885U 05041B 24030.13808515 .00000143 00000+0 00000+0 0 9997 2 28885 2.4161 86.6068 0003246 223.6512 274.5006 1.00273773 67026 METEOSAT-9 (MSG-2) 1 28912U 05049B 24030.13808515 .00000135 00000+0 00000+0 0 9997 2 28912 7.3658 62.0164 0000575 264.8254 257.5778 1.00279067 66364 EUTELSAT HOTBIRD 13E 1 28946U 06007B 24030.13147142 .00000098 00000+0 00000+0 0 9999 2 28946 0.0700 176.3696 0005815 119.8585 252.7371 1.00272648 65583 ASTRA 1KR 1 29055U 06012A 24029.84424382 .00000131 00000+0 00000+0 0 9995 2 29055 0.0747 274.5177 0004271 357.3158 179.8529 1.00274818 37002 EUTELSAT HOTBIRD 13B 1 29270U 06032A 24029.89702042 .00000167 00000+0 00000+0 0 9992 2 29270 0.0443 11.0786 0004350 300.7370 172.7966 1.00271328 38595 SYRACUSE 3B 1 29273U 06033B 24030.02757719 -.00000033 00000+0 00000+0 0 9997 2 29273 0.6619 91.4161 0005401 213.5858 188.4580 1.00271808 64035 BADR-4 1 29526U 06051A 24030.13408212 .00000156 00000+0 00000+0 0 9996 2 29526 0.0458 322.4332 0007843 353.0252 247.6300 1.00273923 63170 ASTRA 1L 1 31306U 07016A 24030.13277676 .00000131 00000+0 00000+0 0 9998 2 31306 0.0878 297.0383 0005486 2.1945 256.6001 1.00271091 61327 WGS F1 (USA 195) 1 32258U 07046A 24030.13016608 .00000052 00000+0 00000+0 0 9996 2 32258 0.0188 76.7307 0000123 293.7066 171.2700 1.00268037 59603 SKYNET 5B 1 32294U 07056B 24030.13390806 .00000152 00000+0 00000+0 0 9993 2 32294 3.0283 83.6655 0003941 233.1068 245.3512 1.00273281 59472 ASTRA 4A (SIRIUS 4) 1 32299U 07057A 24030.12827270 .00000044 00000+0 00000+0 0 9998 2 32299 0.0182 349.1373 0003104 315.2996 235.3863 1.00273409 59247 THOR 5 1 32487U 08006A 24030.05715406 .00000002 00000+0 00000+0 0 9995 2 32487 0.0444 257.2610 0002375 57.8938 193.4348 1.00272322 58462 AMOS-3 1 32794U 08022A 24029.32341338 -.00000026 00000+0 00000+0 0 9998 2 32794 0.0014 264.9689 0002390 19.0224 316.3537 1.00272748 73614 SKYNET 5C 1 33055U 08030A 24030.12537983 -.00000128 00000+0 00000+0 0 9994 2 33055 1.5475 86.7299 0004181 232.2707 197.1590 1.00272589 57185 TURKSAT 3A 1 33056U 08030B 24030.13730194 .00000158 00000+0 00000+0 0 9997 2 33056 0.0241 120.1712 0003017 201.1344 258.9525 1.00270506 57364 BADR-6 1 33154U 08034B 24030.13408212 .00000156 00000+0 00000+0 0 9991 2 33154 0.5989 87.2459 0006215 291.6861 184.1618 1.00271077 57030 ASTRA 1M 1 33436U 08057A 24029.91791778 .00000131 00000+0 00000+0 0 9998 2 33436 0.0389 87.0994 0000832 163.6236 227.5218 1.00273289 55760 EUTELSAT HOTBIRD 13C 1 33459U 08065A 24029.41031361 -.00000091 00000+0 00000+0 0 9998 2 33459 0.7016 88.1293 0005208 216.7249 318.4848 1.00272052 38621 EXPRESS-AM44 1 33595U 09007A 24030.03313426 -.00000078 00000+0 00000+0 0 9996 2 33595 1.2160 88.8834 0004466 216.0100 184.7734 1.00272118 54821 THOR 6 1 36033U 09058B 24029.25605267 -.00000001 00000+0 00000+0 0 9997 2 36033 0.0397 260.2931 0001910 40.9659 278.0604 1.00271611 52286 EUTELSAT 36B 1 36101U 09065A 24029.89702042 .00000166 00000+0 00000+0 0 9991 2 36101 0.0674 18.1398 0005494 298.3651 170.9362 1.00274708 52000 ASTRA 3B 1 36581U 10021A 24030.13364699 .00000148 00000+0 00000+0 0 9998 2 36581 0.0513 343.4254 0002188 327.8346 249.1981 1.00268403 49934 COMSATBW-2 1 36582U 10021B 24029.84424382 .00000099 00000+0 00000+0 0 9996 2 36582 0.0710 82.2697 0002865 235.8324 127.5630 1.00274473 50238 BADR-5 1 36592U 10025A 24030.13408212 .00000156 00000+0 00000+0 0 9993 2 36592 0.0291 131.0748 0001171 125.9883 306.0336 1.00269722 50183 ARABSAT-5A 1 36745U 10032B 24030.13495234 .00000165 00000+0 00000+0 0 9991 2 36745 0.0791 62.1107 0003021 270.1344 235.6582 1.00273530 49913 NILESAT 201 1 36830U 10037A 24030.05593573 -.00000047 00000+0 00000+0 0 9997 2 36830 0.0589 253.7921 0003335 49.5396 198.5609 1.00270444 49578 RASCOM-QAF 1R 1 36831U 10037B 24030.12827270 .00000030 00000+0 00000+0 0 9991 2 36831 0.0681 99.6484 0006569 198.6806 239.5874 1.00272527 49571 AEHF-1 (USA 214) 1 36868U 10039A 24029.87549649 .00000033 00000+0 00000+0 0 9997 2 36868 6.0281 79.1180 0000882 171.5449 197.1428 1.00269400 49721 EUTELSAT KA-SAT 9A 1 37258U 10069A 24030.13068822 .00000073 00000+0 00000+0 0 9998 2 37258 0.0659 276.5077 0002041 5.1776 263.2046 1.00267589 48108 INTELSAT NEW DAWN 1 37392U 11016A 24029.89702042 .00000166 00000+0 00000+0 0 9993 2 37392 0.0071 116.7558 0000403 209.8818 157.6856 1.00271931 44572 ASTRA 1N 1 37775U 11041A 24030.13277676 .00000132 00000+0 00000+0 0 9998 2 37775 0.0529 3.6260 0003783 351.7504 200.4720 1.00273278 45688 PAKSAT-1R 1 37779U 11042A 24030.13651874 .00000165 00000+0 00000+0 0 9995 2 37779 0.0164 101.6164 0000914 212.4498 261.9046 1.00275188 45569 ARABSAT-5C 1 37810U 11049B 24030.13295081 .00000135 00000+0 00000+0 0 9999 2 37810 0.0494 18.1995 0003245 226.4382 312.0529 1.00270647 45190 EUTELSAT 7 WEST A 1 37816U 11051A 24029.88105046 -.00000049 00000+0 00000+0 0 9994 2 37816 0.0605 2.9939 0004896 237.8852 197.5957 1.00271559 45183 EUTELSAT 16A 1 37836U 11057A 24029.84424382 .00000114 00000+0 00000+0 0 9997 2 37836 0.0658 8.9997 0005338 301.1042 138.3689 1.00270264 37257 NIGCOMSAT 1R 1 38014U 11077A 24030.13738897 .00000157 00000+0 00000+0 0 9998 2 38014 0.0052 124.0720 0003681 212.2827 244.4510 1.00272505 44317 YAHSAT 1B 1 38245U 12016A 24029.91368649 .00000137 00000+0 00000+0 0 9994 2 38245 0.0196 99.1326 0002720 231.1379 174.8830 1.00270564 36888 METEOSAT-10 (MSG-3) 1 38552U 12035B 24030.05732809 .00000006 00000+0 00000+0 0 9991 2 38552 2.6555 59.6855 0001106 251.5478 198.3915 1.00276951 42504 SES-5 1 38652U 12036A 24029.55694684 .00000044 00000+0 00000+0 0 9996 2 38652 0.0280 350.8647 0002081 314.5214 28.3752 1.00271799 35764 HYLAS 2 1 38741U 12043B 24029.89702042 .00000165 00000+0 00000+0 0 9992 2 38741 0.1763 91.7105 0001544 241.6073 149.2781 1.00275462 42052 ASTRA 2F 1 38778U 12051A 24030.13451722 .00000162 00000+0 00000+0 0 9993 2 38778 0.0856 256.1037 0003622 6.4180 302.9545 1.00272128 41578 LUCH-5B 1 38977U 12061A 24029.91078193 -.00000127 00000+0 00000+0 0 9998 2 38977 8.5810 57.9081 0002328 189.6589 192.6482 1.00273238 41462 EUTELSAT 21B 1 38992U 12062B 24029.83868942 .00000140 00000+0 00000+0 0 9990 2 38992 0.0658 8.9271 0002957 302.8480 140.2989 1.00269907 41111 AZERSPACE 1 1 39079U 13006B 24029.91368649 .00000144 00000+0 00000+0 0 9998 2 39079 0.0072 32.9068 0001713 310.4904 160.1463 1.00270569 40094 EUTELSAT 7B 1 39163U 13022A 24029.87549649 .00000059 00000+0 00000+0 0 9991 2 39163 0.0790 329.3632 0005656 9.0927 112.3272 1.00274446 39252 ALPHASAT 1 39215U 13038A 24029.83868942 .00000145 00000+0 00000+0 0 9998 2 39215 2.8682 8.6649 0002440 309.5480 137.1349 1.00269149 35301 ES'HAIL 1 1 39233U 13044A 24030.13399508 .00000156 00000+0 00000+0 0 9999 2 39233 0.0549 339.2041 0003058 338.9459 244.4842 1.00279183 38188 ASTRA 2E 1 39285U 13056A 24029.89702042 .00000161 00000+0 00000+0 0 9997 2 39285 0.0745 319.2395 0002707 340.8395 179.9480 1.00269361 37720 RADUGA-1M 3 1 39375U 13062A 24030.13590958 .00000165 00000+0 00000+0 0 9998 2 39375 3.7401 82.9926 0000801 66.4901 63.2878 1.00272581 37410 ATHENA-FIDUS 1 39509U 14006B 24030.13643174 .00000166 00000+0 00000+0 0 9996 2 39509 0.0149 135.4167 0001137 184.1528 256.1867 1.00272436 36784 TURKSAT 4A 1 39522U 14007A 24030.13730194 .00000158 00000+0 00000+0 0 9992 2 39522 0.0894 266.1533 0004814 23.2696 290.8476 1.00273496 36495 ASTRA 5B 1 39617U 14011B 24030.13355997 .00000149 00000+0 00000+0 0 9996 2 39617 0.0703 301.5369 0004459 1.8935 256.9887 1.00273647 36153 EUTELSAT 3B 1 39773U 14030A 24029.87549649 .00000031 00000+0 00000+0 0 9998 2 39773 0.0609 8.3794 0004330 235.3062 203.1747 1.00271333 35358 ASIASAT 8 (AMOS-7) 1 40107U 14046A 24029.88105046 -.00000023 00000+0 00000+0 0 9990 2 40107 0.0057 268.7309 0002121 36.9265 136.2287 1.00271442 93426 LUCH (OLYMP-K 1) 1 40258U 14058A 24029.40900828 -.00000131 00000+0 00000+0 0 9999 2 40258 0.0280 118.6578 0001041 177.2210 321.4265 1.00275899 32271 ASTRA 2G 1 40364U 14089A 24030.13451722 .00000162 00000+0 00000+0 0 9990 2 40364 0.0520 325.2421 0002550 48.6667 191.5480 1.00273849 33305 MUOS-3 1 40374U 15002A 24030.12572792 -.00000117 00000+0 00000+0 0 9998 2 40374 3.0479 32.0993 0056101 183.7855 302.7660 1.00271781 33107 ABS-3A 1 40424U 15010A 24030.02757719 -.00000016 00000+0 00000+0 0 9994 2 40424 0.0109 75.7810 0001816 139.3288 280.5971 1.00268178 32655 EXPRESS-AM7 1 40505U 15012A 24030.13686684 .00000162 00000+0 00000+0 0 9991 2 40505 0.0182 73.6884 0002800 226.2832 278.1340 1.00270726 32643 THOR 7 1 40613U 15022A 24029.25605267 .00000001 00000+0 00000+0 0 9993 2 40613 0.0134 123.0189 0002697 191.1183 265.3623 1.00272542 32090 METEOSAT-11 (MSG-4) 1 40732U 15034A 24030.13077524 .00000073 00000+0 00000+0 0 9995 2 40732 1.0558 64.3037 0002512 202.7721 278.0568 1.00270366 31297 EUTELSAT 8 WEST B 1 40875U 15039B 24029.88105046 -.00000055 00000+0 00000+0 0 9990 2 40875 0.0637 8.5872 0003973 306.7766 122.4119 1.00271150 30931 EXPRESS-AM8 1 40895U 15048A 24030.05454337 -.00000100 00000+0 00000+0 0 9994 2 40895 0.0060 271.0682 0000452 238.6130 344.7194 1.00271042 30668 TURKSAT 4B 1 40984U 15060A 24030.13886837 .00000127 00000+0 00000+0 0 9998 2 40984 0.0322 286.3783 0002170 18.6427 283.7960 1.00273344 30371 BADR-7 (ARABSAT-6B) 1 41029U 15065B 24029.83868942 .00000156 00000+0 00000+0 0 9998 2 41029 0.0523 250.0153 0004300 2.2050 204.2651 1.00275087 30047 TELSTAR 12V 1 41036U 15068A 24030.12572792 -.00000108 00000+0 00000+0 0 9996 2 41036 0.0216 89.7466 0002437 233.5941 195.7754 1.00269359 30015 ELEKTRO-L 2 1 41105U 15074A 24029.40987851 -.00000108 00000+0 00000+0 0 9995 2 41105 4.4838 81.1562 0003360 201.1236 338.9422 1.00271467 29785 EXPRESS-AMU1 1 41191U 15082A 24030.13608362 .00000167 00000+0 00000+0 0 9992 2 41191 0.0175 87.7844 0002558 206.4924 279.6515 1.00273731 29792 EUTELSAT 9B 1 41310U 16005A 24030.13068822 .00000073 00000+0 00000+0 0 9998 2 41310 0.0265 59.8464 0004731 227.4551 257.5751 1.00271105 29393 IRNSS-1F 1 41384U 16015A 24030.13530043 .00000169 00000+0 00000+0 0 9995 2 41384 3.2513 123.2508 0021534 186.3180 260.3630 1.00272634 28947 USA 271 1 41745U 16052B 24028.26879288 .00000049 00000+0 00000+0 0 9992 2 41745 1.9259 88.3409 0000635 247.0540 257.4553 1.00164494 19197 WGS F9 (USA 275) 1 42075U 17016A 24030.05489146 -.00000086 00000+0 00000+0 0 9992 2 42075 0.0157 106.4209 0000328 226.3835 163.7038 1.00268007 25219 GSAT-19 1 42747U 17031A 24030.13843324 .00000137 00000+0 00000+0 0 9992 2 42747 0.0295 103.0315 0002633 260.5294 222.9853 1.00272523 24411 ECHOSTAR 21 1 42749U 17032A 24030.13094928 .00000079 00000+0 00000+0 0 9998 2 42749 2.7856 316.9314 0002728 342.5280 246.8024 1.00274032 24401 BULGARIASAT-1 1 42801U 17038A 24030.12929586 .00000022 00000+0 00000+0 0 9997 2 42801 0.0535 90.8874 0002596 216.8697 229.5224 1.00270599 24192 HELLAS-SAT 3 1 42814U 17040A 24030.13669279 .00000164 00000+0 00000+0 0 9992 2 42814 0.0574 1.8559 0004288 336.4889 238.6906 1.00271354 24146 COSMOS 2520 1 42907U 17046A 24030.13791111 .00000149 00000+0 00000+0 0 9995 2 42907 0.0284 106.3217 0000233 187.2255 289.9489 1.00272940 23678 TDRS 13 1 42915U 17047A 24030.05506551 -.00000086 00000+0 00000+0 0 9999 2 42915 3.7595 341.8105 0012308 110.2250 45.0354 1.00272571 23662 INTELSAT 37E (IS-37E) 1 42950U 17059A 24030.12537983 -.00000130 00000+0 00000+0 0 9992 2 42950 0.0128 90.3106 0002582 215.3026 210.3787 1.00268193 23337 AZERSPACE 2 (IS-38) 1 43632U 18074A 24030.13791111 .00000148 00000+0 00000+0 0 9992 2 43632 0.0183 81.9184 0001460 229.0581 272.6184 1.00271105 19727 ES'HAIL 2 1 43700U 18090A 24029.83868942 .00000155 00000+0 00000+0 0 9996 2 43700 0.0174 79.1763 0001131 230.5913 146.5150 1.00275035 18969 HELLAS-SAT 4 & SGS-1 1 44034U 19007A 24029.54163899 .00000162 00000+0 00000+0 0 9991 2 44034 0.0686 125.2674 0003259 49.7265 187.2461 1.00270943 18639 GSAT-31 1 44035U 19007B 24030.06681358 .00000137 00000+0 00000+0 0 9998 2 44035 0.0827 266.2386 0005779 18.2485 276.2010 1.00273255 18242 ARABSAT-6A 1 44186U 19021A 24030.13495234 .00000166 00000+0 00000+0 0 9997 2 44186 0.0371 28.5450 0004365 269.9633 269.4150 1.00279014 17432 YAMAL 601 1 44307U 19031A 24030.13869431 .00000132 00000+0 00000+0 0 9990 2 44307 0.0159 123.9387 0002547 180.6333 283.2020 1.00271971 17193 EUTELSAT 7C 1 44334U 19034B 24030.13034013 .00000060 00000+0 00000+0 0 9993 2 44334 0.0723 196.7609 0003251 100.8216 245.1802 1.00271513 17414 COSMOS 2539 1 44457U 19048A 24030.13129737 .00000093 00000+0 00000+0 0 9998 2 44457 0.0219 117.9999 0000309 219.8178 210.3002 1.00270996 16516 EDRS-C 1 44475U 19049A 24029.55698717 .00000164 00000+0 00000+0 0 9991 2 44475 0.0774 254.7852 0000427 15.5011 89.6835 1.00270267 16486 AMOS-17 1 44479U 19050A 24030.13234166 .00000121 00000+0 00000+0 0 9990 2 44479 0.0196 79.7750 0001871 250.1269 223.5938 1.00273784 16464 EUTELSAT 5 WEST B 1 44624U 19067A 24030.02757719 -.00000031 00000+0 00000+0 0 9993 2 44624 0.1089 305.9124 0003150 5.2582 182.4897 1.00273317 15723 TIBA-1 1 44800U 19080A 24030.13599661 .00000167 00000+0 00000+0 0 9995 2 44800 0.0528 9.1245 0001827 312.1817 251.9987 1.00270792 15369 INMARSAT GX5 1 44801U 19080B 24030.13112333 .00000086 00000+0 00000+0 0 9993 2 44801 0.0363 13.1175 0002230 298.8100 235.1138 1.00273384 15371 EUTELSAT KONNECT 1 45027U 20005B 24029.87549649 .00000060 00000+0 00000+0 0 9998 2 45027 0.0576 90.3724 0000445 112.2614 248.3383 1.00272305 15617 EUTELSAT KONNECT MEV-2 1 46113U 20056B 24029.25605267 -.00000002 00000+0 00000+0 0 9999 2 46113 0.0173 266.5893 0000629 79.8578 232.7549 1.00270555 71823 TURKSAT 5A 1 47306U 21001A 24030.13512639 .00000166 00000+0 00000+0 0 9994 2 47306 0.0224 91.1810 0000174 290.9739 186.2504 1.00271597 11270 SBIRS GEO-5 (USA 315) 1 48618U 21042A 24029.56016669 .00000130 00000+0 00000+0 0 9994 2 48618 6.3692 325.5030 0002641 336.8536 48.4889 1.00272637 10044 TIANLIAN 1-05 1 49011U 21063A 24030.13225463 .00000120 00000+0 00000+0 0 9993 2 49011 0.6611 279.2968 0003144 13.2995 260.6529 1.00275508 9350 EUTELSAT QUANTUM 1 49056U 21069B 24029.91368649 .00000137 00000+0 00000+0 0 9994 2 49056 0.0114 13.3500 0002790 298.6990 193.2058 1.00273045 9217 SYRACUSE 4A 1 49333U 21095B 24030.13799812 .00000147 00000+0 00000+0 0 9998 2 49333 0.0163 94.5360 0001479 211.2860 278.2228 1.00271196 9278 TURKSAT 5B 1 50212U 21126A 24029.85188329 .00000157 00000+0 00000+0 0 9994 2 50212 0.0675 346.7528 0005373 332.4326 158.0452 1.00272325 7583 SHIYAN 12 01 (SY-12 01) 1 50321U 21129A 24029.89702042 .00000166 00000+0 00000+0 0 9996 2 50321 1.4228 93.5693 0001110 132.0235 254.9383 1.00442412 7788 NILESAT 301 1 52817U 22061A 24029.41135788 -.00000048 00000+0 00000+0 0 9999 2 52817 0.0515 338.3869 0005370 342.6695 308.1525 1.00272683 6016 TIANLIAN 2-03 1 53100U 22078A 24029.39162047 .00000081 00000+0 00000+0 0 9994 2 53100 1.5870 279.4320 0001952 45.2631 315.0167 1.00269007 5831 EUTELSAT KONNECT VHTS 1 53765U 22110A 24030.12827270 .00000029 00000+0 00000+0 0 9999 2 53765 0.0463 94.1097 0002968 205.2443 238.3605 1.00273234 5077 ANGOSAT 2 1 54033U 22131A 24030.13347295 .00000147 00000+0 00000+0 0 9997 2 54033 0.0219 170.0991 0000080 261.2936 128.4957 1.00272411 4764 EUTELSAT HOTBIRD 13F 1 54048U 22134A 24029.98831913 .00000098 00000+0 00000+0 0 9997 2 54048 0.0655 285.3222 0004253 6.6214 205.5485 1.00270887 4721 EUTELSAT HOTBIRD 13G 1 54225U 22146A 24029.56438279 .00000097 00000+0 00000+0 0 9998 2 54225 0.0521 252.1834 0004531 351.7326 100.5359 1.00271491 4500 EUTELSAT 10B 1 54259U 22157A 24029.55799112 .00000078 00000+0 00000+0 0 9991 2 54259 0.0523 93.0787 0005604 178.6025 67.4537 1.00271210 4308 METEOSAT-12 (MTG-I1) 1 54743U 22170C 24030.12827270 .00000027 00000+0 00000+0 0 9990 2 54743 0.3890 358.6562 0000427 260.4556 275.2779 1.00409528 4250 USA 342 1 55263U 23008A 24028.55817885 .00000145 00000+0 00000+0 0 9995 2 55263 0.0762 97.4651 0000479 12.3105 242.4490 1.00271659 3797 LUCH-5X (OLYMP-K 2) 1 55841U 23031A 24029.55642471 .00000026 00000+0 00000+0 0 9999 2 55841 0.0111 43.1657 0000690 204.9875 83.0589 1.00271352 3225 ARABSAT-7B (BADR-8) 1 56757U 23075A 24030.13408212 .00000156 00000+0 00000+0 0 9997 2 56757 0.0736 30.8122 0004942 310.5795 221.7030 1.00271950 2410 H2SAT (HEINRICH HERTZ) 1 57213U 23093A 24030.05741512 .00000012 00000+0 00000+0 0 9990 2 57213 0.0229 108.8012 0001555 332.1445 68.9852 1.00272271 2159 SYRACUSE 4B 1 57214U 23093B 24029.88105046 -.00000043 00000+0 00000+0 0 9991 2 57214 0.0185 278.7207 0000274 39.7910 120.8279 1.00269183 795 '
rgx = '([^\n\r]+)\s+(1(\s+\S+){8})\s+(2(\s+\S+){8})';
tkn = regexp(txt,rgx,'tokens');
tkn = vertcat(tkn{:})
tkn = 121×3 cell array
{'GALAXY 25 (G-25)' } {'1 24812U 97026A 24028.92063380 -.00000078 00000+0 000…'} {'2 24812 5.1815 77.6349 0007451 274.9760 121.7323 0.99…'} {'HELLAS-SAT 2' } {'1 27811U 03020A 24029.80451597 -.00000074 00000+0 000…'} {'2 27811 5.1686 78.0960 0007804 219.4759 110.5401 1.00…'} {'THURAYA-2' } {'1 27825U 03026A 24030.13765003 .00000137 00000+0 000…'} {'2 27825 7.5212 34.3905 0002926 271.6304 276.3888 1.00…'} {'USA 170' } {'1 27875U 03040A 24029.74354905 .00000103 00000+0 000…'} {'2 27875 8.6358 55.5477 0001561 343.4178 13.4821 1.00…'} {'INTELSAT 10-02' } {'1 28358U 04022A 24030.12827270 .00000001 00000+0 000…'} {'2 28358 0.0554 253.5941 0000537 81.5684 198.8720 1.00…'} {'XTAR-EUR' } {'1 28542U 05005A 24029.80566004 .00000161 00000+0 000…'} {'2 28542 2.0874 87.5678 0005551 211.9986 147.9852 1.00…'} {'GALAXY 14 (G-14)' } {'1 28790U 05030A 24030.13547447 .00000166 00000+0 000…'} {'2 28790 2.7710 85.5178 0001605 225.3129 259.6827 1.00…'} {'SYRACUSE 3A' } {'1 28885U 05041B 24030.13808515 .00000143 00000+0 000…'} {'2 28885 2.4161 86.6068 0003246 223.6512 274.5006 1.00…'} {'METEOSAT-9 (MSG-2)' } {'1 28912U 05049B 24030.13808515 .00000135 00000+0 000…'} {'2 28912 7.3658 62.0164 0000575 264.8254 257.5778 1.00…'} {'EUTELSAT HOTBIRD 13E'} {'1 28946U 06007B 24030.13147142 .00000098 00000+0 000…'} {'2 28946 0.0700 176.3696 0005815 119.8585 252.7371 1.00…'} {'ASTRA 1KR' } {'1 29055U 06012A 24029.84424382 .00000131 00000+0 000…'} {'2 29055 0.0747 274.5177 0004271 357.3158 179.8529 1.00…'} {'EUTELSAT HOTBIRD 13B'} {'1 29270U 06032A 24029.89702042 .00000167 00000+0 000…'} {'2 29270 0.0443 11.0786 0004350 300.7370 172.7966 1.00…'} {'SYRACUSE 3B' } {'1 29273U 06033B 24030.02757719 -.00000033 00000+0 000…'} {'2 29273 0.6619 91.4161 0005401 213.5858 188.4580 1.00…'} {'BADR-4' } {'1 29526U 06051A 24030.13408212 .00000156 00000+0 000…'} {'2 29526 0.0458 322.4332 0007843 353.0252 247.6300 1.00…'} {'ASTRA 1L' } {'1 31306U 07016A 24030.13277676 .00000131 00000+0 000…'} {'2 31306 0.0878 297.0383 0005486 2.1945 256.6001 1.00…'} {'WGS F1 (USA 195)' } {'1 32258U 07046A 24030.13016608 .00000052 00000+0 000…'} {'2 32258 0.0188 76.7307 0000123 293.7066 171.2700 1.00…'} {'SKYNET 5B' } {'1 32294U 07056B 24030.13390806 .00000152 00000+0 000…'} {'2 32294 3.0283 83.6655 0003941 233.1068 245.3512 1.00…'} {'ASTRA 4A (SIRIUS 4)' } {'1 32299U 07057A 24030.12827270 .00000044 00000+0 000…'} {'2 32299 0.0182 349.1373 0003104 315.2996 235.3863 1.00…'} {'THOR 5' } {'1 32487U 08006A 24030.05715406 .00000002 00000+0 000…'} {'2 32487 0.0444 257.2610 0002375 57.8938 193.4348 1.00…'} {'AMOS-3' } {'1 32794U 08022A 24029.32341338 -.00000026 00000+0 000…'} {'2 32794 0.0014 264.9689 0002390 19.0224 316.3537 1.00…'} {'SKYNET 5C' } {'1 33055U 08030A 24030.12537983 -.00000128 00000+0 000…'} {'2 33055 1.5475 86.7299 0004181 232.2707 197.1590 1.00…'} {'TURKSAT 3A' } {'1 33056U 08030B 24030.13730194 .00000158 00000+0 000…'} {'2 33056 0.0241 120.1712 0003017 201.1344 258.9525 1.00…'} {'BADR-6' } {'1 33154U 08034B 24030.13408212 .00000156 00000+0 000…'} {'2 33154 0.5989 87.2459 0006215 291.6861 184.1618 1.00…'} {'ASTRA 1M' } {'1 33436U 08057A 24029.91791778 .00000131 00000+0 000…'} {'2 33436 0.0389 87.0994 0000832 163.6236 227.5218 1.00…'} {'EUTELSAT HOTBIRD 13C'} {'1 33459U 08065A 24029.41031361 -.00000091 00000+0 000…'} {'2 33459 0.7016 88.1293 0005208 216.7249 318.4848 1.00…'} {'EXPRESS-AM44' } {'1 33595U 09007A 24030.03313426 -.00000078 00000+0 000…'} {'2 33595 1.2160 88.8834 0004466 216.0100 184.7734 1.00…'} {'THOR 6' } {'1 36033U 09058B 24029.25605267 -.00000001 00000+0 000…'} {'2 36033 0.0397 260.2931 0001910 40.9659 278.0604 1.00…'} {'EUTELSAT 36B' } {'1 36101U 09065A 24029.89702042 .00000166 00000+0 000…'} {'2 36101 0.0674 18.1398 0005494 298.3651 170.9362 1.00…'} {'ASTRA 3B' } {'1 36581U 10021A 24030.13364699 .00000148 00000+0 000…'} {'2 36581 0.0513 343.4254 0002188 327.8346 249.1981 1.00…'} {'COMSATBW-2' } {'1 36582U 10021B 24029.84424382 .00000099 00000+0 000…'} {'2 36582 0.0710 82.2697 0002865 235.8324 127.5630 1.00…'}
[~,idx] = unique(tkn(:,1),'stable');
tmp = tkn(idx,:).';
writelines(tmp(:),'output.txt')
Checking the output file:
numel(tmp) % how many lines
ans = 363
type output.txt
GALAXY 25 (G-25) 1 24812U 97026A 24028.92063380 -.00000078 00000+0 00000+0 0 9992 2 24812 5.1815 77.6349 0007451 274.9760 121.7323 0.99098031 97595 HELLAS-SAT 2 1 27811U 03020A 24029.80451597 -.00000074 00000+0 00000+0 0 9990 2 27811 5.1686 78.0960 0007804 219.4759 110.5401 1.00271922 34129 THURAYA-2 1 27825U 03026A 24030.13765003 .00000137 00000+0 00000+0 0 9998 2 27825 7.5212 34.3905 0002926 271.6304 276.3888 1.00273178 75620 USA 170 1 27875U 03040A 24029.74354905 .00000103 00000+0 00000+0 0 9992 2 27875 8.6358 55.5477 0001561 343.4178 13.4821 1.00266323 22913 INTELSAT 10-02 1 28358U 04022A 24030.12827270 .00000001 00000+0 00000+0 0 9991 2 28358 0.0554 253.5941 0000537 81.5684 198.8720 1.00271603 71911 XTAR-EUR 1 28542U 05005A 24029.80566004 .00000161 00000+0 00000+0 0 9993 2 28542 2.0874 87.5678 0005551 211.9986 147.9852 1.00272414 69470 GALAXY 14 (G-14) 1 28790U 05030A 24030.13547447 .00000166 00000+0 00000+0 0 9999 2 28790 2.7710 85.5178 0001605 225.3129 259.6827 1.00271228 67583 SYRACUSE 3A 1 28885U 05041B 24030.13808515 .00000143 00000+0 00000+0 0 9997 2 28885 2.4161 86.6068 0003246 223.6512 274.5006 1.00273773 67026 METEOSAT-9 (MSG-2) 1 28912U 05049B 24030.13808515 .00000135 00000+0 00000+0 0 9997 2 28912 7.3658 62.0164 0000575 264.8254 257.5778 1.00279067 66364 EUTELSAT HOTBIRD 13E 1 28946U 06007B 24030.13147142 .00000098 00000+0 00000+0 0 9999 2 28946 0.0700 176.3696 0005815 119.8585 252.7371 1.00272648 65583 ASTRA 1KR 1 29055U 06012A 24029.84424382 .00000131 00000+0 00000+0 0 9995 2 29055 0.0747 274.5177 0004271 357.3158 179.8529 1.00274818 37002 EUTELSAT HOTBIRD 13B 1 29270U 06032A 24029.89702042 .00000167 00000+0 00000+0 0 9992 2 29270 0.0443 11.0786 0004350 300.7370 172.7966 1.00271328 38595 SYRACUSE 3B 1 29273U 06033B 24030.02757719 -.00000033 00000+0 00000+0 0 9997 2 29273 0.6619 91.4161 0005401 213.5858 188.4580 1.00271808 64035 BADR-4 1 29526U 06051A 24030.13408212 .00000156 00000+0 00000+0 0 9996 2 29526 0.0458 322.4332 0007843 353.0252 247.6300 1.00273923 63170 ASTRA 1L 1 31306U 07016A 24030.13277676 .00000131 00000+0 00000+0 0 9998 2 31306 0.0878 297.0383 0005486 2.1945 256.6001 1.00271091 61327 WGS F1 (USA 195) 1 32258U 07046A 24030.13016608 .00000052 00000+0 00000+0 0 9996 2 32258 0.0188 76.7307 0000123 293.7066 171.2700 1.00268037 59603 SKYNET 5B 1 32294U 07056B 24030.13390806 .00000152 00000+0 00000+0 0 9993 2 32294 3.0283 83.6655 0003941 233.1068 245.3512 1.00273281 59472 ASTRA 4A (SIRIUS 4) 1 32299U 07057A 24030.12827270 .00000044 00000+0 00000+0 0 9998 2 32299 0.0182 349.1373 0003104 315.2996 235.3863 1.00273409 59247 THOR 5 1 32487U 08006A 24030.05715406 .00000002 00000+0 00000+0 0 9995 2 32487 0.0444 257.2610 0002375 57.8938 193.4348 1.00272322 58462 AMOS-3 1 32794U 08022A 24029.32341338 -.00000026 00000+0 00000+0 0 9998 2 32794 0.0014 264.9689 0002390 19.0224 316.3537 1.00272748 73614 SKYNET 5C 1 33055U 08030A 24030.12537983 -.00000128 00000+0 00000+0 0 9994 2 33055 1.5475 86.7299 0004181 232.2707 197.1590 1.00272589 57185 TURKSAT 3A 1 33056U 08030B 24030.13730194 .00000158 00000+0 00000+0 0 9997 2 33056 0.0241 120.1712 0003017 201.1344 258.9525 1.00270506 57364 BADR-6 1 33154U 08034B 24030.13408212 .00000156 00000+0 00000+0 0 9991 2 33154 0.5989 87.2459 0006215 291.6861 184.1618 1.00271077 57030 ASTRA 1M 1 33436U 08057A 24029.91791778 .00000131 00000+0 00000+0 0 9998 2 33436 0.0389 87.0994 0000832 163.6236 227.5218 1.00273289 55760 EUTELSAT HOTBIRD 13C 1 33459U 08065A 24029.41031361 -.00000091 00000+0 00000+0 0 9998 2 33459 0.7016 88.1293 0005208 216.7249 318.4848 1.00272052 38621 EXPRESS-AM44 1 33595U 09007A 24030.03313426 -.00000078 00000+0 00000+0 0 9996 2 33595 1.2160 88.8834 0004466 216.0100 184.7734 1.00272118 54821 THOR 6 1 36033U 09058B 24029.25605267 -.00000001 00000+0 00000+0 0 9997 2 36033 0.0397 260.2931 0001910 40.9659 278.0604 1.00271611 52286 EUTELSAT 36B 1 36101U 09065A 24029.89702042 .00000166 00000+0 00000+0 0 9991 2 36101 0.0674 18.1398 0005494 298.3651 170.9362 1.00274708 52000 ASTRA 3B 1 36581U 10021A 24030.13364699 .00000148 00000+0 00000+0 0 9998 2 36581 0.0513 343.4254 0002188 327.8346 249.1981 1.00268403 49934 COMSATBW-2 1 36582U 10021B 24029.84424382 .00000099 00000+0 00000+0 0 9996 2 36582 0.0710 82.2697 0002865 235.8324 127.5630 1.00274473 50238 BADR-5 1 36592U 10025A 24030.13408212 .00000156 00000+0 00000+0 0 9993 2 36592 0.0291 131.0748 0001171 125.9883 306.0336 1.00269722 50183 ARABSAT-5A 1 36745U 10032B 24030.13495234 .00000165 00000+0 00000+0 0 9991 2 36745 0.0791 62.1107 0003021 270.1344 235.6582 1.00273530 49913 NILESAT 201 1 36830U 10037A 24030.05593573 -.00000047 00000+0 00000+0 0 9997 2 36830 0.0589 253.7921 0003335 49.5396 198.5609 1.00270444 49578 RASCOM-QAF 1R 1 36831U 10037B 24030.12827270 .00000030 00000+0 00000+0 0 9991 2 36831 0.0681 99.6484 0006569 198.6806 239.5874 1.00272527 49571 AEHF-1 (USA 214) 1 36868U 10039A 24029.87549649 .00000033 00000+0 00000+0 0 9997 2 36868 6.0281 79.1180 0000882 171.5449 197.1428 1.00269400 49721 EUTELSAT KA-SAT 9A 1 37258U 10069A 24030.13068822 .00000073 00000+0 00000+0 0 9998 2 37258 0.0659 276.5077 0002041 5.1776 263.2046 1.00267589 48108 INTELSAT NEW DAWN 1 37392U 11016A 24029.89702042 .00000166 00000+0 00000+0 0 9993 2 37392 0.0071 116.7558 0000403 209.8818 157.6856 1.00271931 44572 ASTRA 1N 1 37775U 11041A 24030.13277676 .00000132 00000+0 00000+0 0 9998 2 37775 0.0529 3.6260 0003783 351.7504 200.4720 1.00273278 45688 PAKSAT-1R 1 37779U 11042A 24030.13651874 .00000165 00000+0 00000+0 0 9995 2 37779 0.0164 101.6164 0000914 212.4498 261.9046 1.00275188 45569 ARABSAT-5C 1 37810U 11049B 24030.13295081 .00000135 00000+0 00000+0 0 9999 2 37810 0.0494 18.1995 0003245 226.4382 312.0529 1.00270647 45190 EUTELSAT 7 WEST A 1 37816U 11051A 24029.88105046 -.00000049 00000+0 00000+0 0 9994 2 37816 0.0605 2.9939 0004896 237.8852 197.5957 1.00271559 45183 EUTELSAT 16A 1 37836U 11057A 24029.84424382 .00000114 00000+0 00000+0 0 9997 2 37836 0.0658 8.9997 0005338 301.1042 138.3689 1.00270264 37257 NIGCOMSAT 1R 1 38014U 11077A 24030.13738897 .00000157 00000+0 00000+0 0 9998 2 38014 0.0052 124.0720 0003681 212.2827 244.4510 1.00272505 44317 YAHSAT 1B 1 38245U 12016A 24029.91368649 .00000137 00000+0 00000+0 0 9994 2 38245 0.0196 99.1326 0002720 231.1379 174.8830 1.00270564 36888 METEOSAT-10 (MSG-3) 1 38552U 12035B 24030.05732809 .00000006 00000+0 00000+0 0 9991 2 38552 2.6555 59.6855 0001106 251.5478 198.3915 1.00276951 42504 SES-5 1 38652U 12036A 24029.55694684 .00000044 00000+0 00000+0 0 9996 2 38652 0.0280 350.8647 0002081 314.5214 28.3752 1.00271799 35764 HYLAS 2 1 38741U 12043B 24029.89702042 .00000165 00000+0 00000+0 0 9992 2 38741 0.1763 91.7105 0001544 241.6073 149.2781 1.00275462 42052 ASTRA 2F 1 38778U 12051A 24030.13451722 .00000162 00000+0 00000+0 0 9993 2 38778 0.0856 256.1037 0003622 6.4180 302.9545 1.00272128 41578 LUCH-5B 1 38977U 12061A 24029.91078193 -.00000127 00000+0 00000+0 0 9998 2 38977 8.5810 57.9081 0002328 189.6589 192.6482 1.00273238 41462 EUTELSAT 21B 1 38992U 12062B 24029.83868942 .00000140 00000+0 00000+0 0 9990 2 38992 0.0658 8.9271 0002957 302.8480 140.2989 1.00269907 41111 AZERSPACE 1 1 39079U 13006B 24029.91368649 .00000144 00000+0 00000+0 0 9998 2 39079 0.0072 32.9068 0001713 310.4904 160.1463 1.00270569 40094 EUTELSAT 7B 1 39163U 13022A 24029.87549649 .00000059 00000+0 00000+0 0 9991 2 39163 0.0790 329.3632 0005656 9.0927 112.3272 1.00274446 39252 ALPHASAT 1 39215U 13038A 24029.83868942 .00000145 00000+0 00000+0 0 9998 2 39215 2.8682 8.6649 0002440 309.5480 137.1349 1.00269149 35301 ES'HAIL 1 1 39233U 13044A 24030.13399508 .00000156 00000+0 00000+0 0 9999 2 39233 0.0549 339.2041 0003058 338.9459 244.4842 1.00279183 38188 ASTRA 2E 1 39285U 13056A 24029.89702042 .00000161 00000+0 00000+0 0 9997 2 39285 0.0745 319.2395 0002707 340.8395 179.9480 1.00269361 37720 RADUGA-1M 3 1 39375U 13062A 24030.13590958 .00000165 00000+0 00000+0 0 9998 2 39375 3.7401 82.9926 0000801 66.4901 63.2878 1.00272581 37410 ATHENA-FIDUS 1 39509U 14006B 24030.13643174 .00000166 00000+0 00000+0 0 9996 2 39509 0.0149 135.4167 0001137 184.1528 256.1867 1.00272436 36784 TURKSAT 4A 1 39522U 14007A 24030.13730194 .00000158 00000+0 00000+0 0 9992 2 39522 0.0894 266.1533 0004814 23.2696 290.8476 1.00273496 36495 ASTRA 5B 1 39617U 14011B 24030.13355997 .00000149 00000+0 00000+0 0 9996 2 39617 0.0703 301.5369 0004459 1.8935 256.9887 1.00273647 36153 EUTELSAT 3B 1 39773U 14030A 24029.87549649 .00000031 00000+0 00000+0 0 9998 2 39773 0.0609 8.3794 0004330 235.3062 203.1747 1.00271333 35358 ASIASAT 8 (AMOS-7) 1 40107U 14046A 24029.88105046 -.00000023 00000+0 00000+0 0 9990 2 40107 0.0057 268.7309 0002121 36.9265 136.2287 1.00271442 93426 LUCH (OLYMP-K 1) 1 40258U 14058A 24029.40900828 -.00000131 00000+0 00000+0 0 9999 2 40258 0.0280 118.6578 0001041 177.2210 321.4265 1.00275899 32271 ASTRA 2G 1 40364U 14089A 24030.13451722 .00000162 00000+0 00000+0 0 9990 2 40364 0.0520 325.2421 0002550 48.6667 191.5480 1.00273849 33305 MUOS-3 1 40374U 15002A 24030.12572792 -.00000117 00000+0 00000+0 0 9998 2 40374 3.0479 32.0993 0056101 183.7855 302.7660 1.00271781 33107 ABS-3A 1 40424U 15010A 24030.02757719 -.00000016 00000+0 00000+0 0 9994 2 40424 0.0109 75.7810 0001816 139.3288 280.5971 1.00268178 32655 EXPRESS-AM7 1 40505U 15012A 24030.13686684 .00000162 00000+0 00000+0 0 9991 2 40505 0.0182 73.6884 0002800 226.2832 278.1340 1.00270726 32643 THOR 7 1 40613U 15022A 24029.25605267 .00000001 00000+0 00000+0 0 9993 2 40613 0.0134 123.0189 0002697 191.1183 265.3623 1.00272542 32090 METEOSAT-11 (MSG-4) 1 40732U 15034A 24030.13077524 .00000073 00000+0 00000+0 0 9995 2 40732 1.0558 64.3037 0002512 202.7721 278.0568 1.00270366 31297 EUTELSAT 8 WEST B 1 40875U 15039B 24029.88105046 -.00000055 00000+0 00000+0 0 9990 2 40875 0.0637 8.5872 0003973 306.7766 122.4119 1.00271150 30931 EXPRESS-AM8 1 40895U 15048A 24030.05454337 -.00000100 00000+0 00000+0 0 9994 2 40895 0.0060 271.0682 0000452 238.6130 344.7194 1.00271042 30668 TURKSAT 4B 1 40984U 15060A 24030.13886837 .00000127 00000+0 00000+0 0 9998 2 40984 0.0322 286.3783 0002170 18.6427 283.7960 1.00273344 30371 BADR-7 (ARABSAT-6B) 1 41029U 15065B 24029.83868942 .00000156 00000+0 00000+0 0 9998 2 41029 0.0523 250.0153 0004300 2.2050 204.2651 1.00275087 30047 TELSTAR 12V 1 41036U 15068A 24030.12572792 -.00000108 00000+0 00000+0 0 9996 2 41036 0.0216 89.7466 0002437 233.5941 195.7754 1.00269359 30015 ELEKTRO-L 2 1 41105U 15074A 24029.40987851 -.00000108 00000+0 00000+0 0 9995 2 41105 4.4838 81.1562 0003360 201.1236 338.9422 1.00271467 29785 EXPRESS-AMU1 1 41191U 15082A 24030.13608362 .00000167 00000+0 00000+0 0 9992 2 41191 0.0175 87.7844 0002558 206.4924 279.6515 1.00273731 29792 EUTELSAT 9B 1 41310U 16005A 24030.13068822 .00000073 00000+0 00000+0 0 9998 2 41310 0.0265 59.8464 0004731 227.4551 257.5751 1.00271105 29393 IRNSS-1F 1 41384U 16015A 24030.13530043 .00000169 00000+0 00000+0 0 9995 2 41384 3.2513 123.2508 0021534 186.3180 260.3630 1.00272634 28947 USA 271 1 41745U 16052B 24028.26879288 .00000049 00000+0 00000+0 0 9992 2 41745 1.9259 88.3409 0000635 247.0540 257.4553 1.00164494 19197 WGS F9 (USA 275) 1 42075U 17016A 24030.05489146 -.00000086 00000+0 00000+0 0 9992 2 42075 0.0157 106.4209 0000328 226.3835 163.7038 1.00268007 25219 GSAT-19 1 42747U 17031A 24030.13843324 .00000137 00000+0 00000+0 0 9992 2 42747 0.0295 103.0315 0002633 260.5294 222.9853 1.00272523 24411 ECHOSTAR 21 1 42749U 17032A 24030.13094928 .00000079 00000+0 00000+0 0 9998 2 42749 2.7856 316.9314 0002728 342.5280 246.8024 1.00274032 24401 BULGARIASAT-1 1 42801U 17038A 24030.12929586 .00000022 00000+0 00000+0 0 9997 2 42801 0.0535 90.8874 0002596 216.8697 229.5224 1.00270599 24192 HELLAS-SAT 3 1 42814U 17040A 24030.13669279 .00000164 00000+0 00000+0 0 9992 2 42814 0.0574 1.8559 0004288 336.4889 238.6906 1.00271354 24146 COSMOS 2520 1 42907U 17046A 24030.13791111 .00000149 00000+0 00000+0 0 9995 2 42907 0.0284 106.3217 0000233 187.2255 289.9489 1.00272940 23678 TDRS 13 1 42915U 17047A 24030.05506551 -.00000086 00000+0 00000+0 0 9999 2 42915 3.7595 341.8105 0012308 110.2250 45.0354 1.00272571 23662 INTELSAT 37E (IS-37E) 1 42950U 17059A 24030.12537983 -.00000130 00000+0 00000+0 0 9992 2 42950 0.0128 90.3106 0002582 215.3026 210.3787 1.00268193 23337 AZERSPACE 2 (IS-38) 1 43632U 18074A 24030.13791111 .00000148 00000+0 00000+0 0 9992 2 43632 0.0183 81.9184 0001460 229.0581 272.6184 1.00271105 19727 ES'HAIL 2 1 43700U 18090A 24029.83868942 .00000155 00000+0 00000+0 0 9996 2 43700 0.0174 79.1763 0001131 230.5913 146.5150 1.00275035 18969 HELLAS-SAT 4 & SGS-1 1 44034U 19007A 24029.54163899 .00000162 00000+0 00000+0 0 9991 2 44034 0.0686 125.2674 0003259 49.7265 187.2461 1.00270943 18639 GSAT-31 1 44035U 19007B 24030.06681358 .00000137 00000+0 00000+0 0 9998 2 44035 0.0827 266.2386 0005779 18.2485 276.2010 1.00273255 18242 ARABSAT-6A 1 44186U 19021A 24030.13495234 .00000166 00000+0 00000+0 0 9997 2 44186 0.0371 28.5450 0004365 269.9633 269.4150 1.00279014 17432 YAMAL 601 1 44307U 19031A 24030.13869431 .00000132 00000+0 00000+0 0 9990 2 44307 0.0159 123.9387 0002547 180.6333 283.2020 1.00271971 17193 EUTELSAT 7C 1 44334U 19034B 24030.13034013 .00000060 00000+0 00000+0 0 9993 2 44334 0.0723 196.7609 0003251 100.8216 245.1802 1.00271513 17414 COSMOS 2539 1 44457U 19048A 24030.13129737 .00000093 00000+0 00000+0 0 9998 2 44457 0.0219 117.9999 0000309 219.8178 210.3002 1.00270996 16516 EDRS-C 1 44475U 19049A 24029.55698717 .00000164 00000+0 00000+0 0 9991 2 44475 0.0774 254.7852 0000427 15.5011 89.6835 1.00270267 16486 AMOS-17 1 44479U 19050A 24030.13234166 .00000121 00000+0 00000+0 0 9990 2 44479 0.0196 79.7750 0001871 250.1269 223.5938 1.00273784 16464 EUTELSAT 5 WEST B 1 44624U 19067A 24030.02757719 -.00000031 00000+0 00000+0 0 9993 2 44624 0.1089 305.9124 0003150 5.2582 182.4897 1.00273317 15723 TIBA-1 1 44800U 19080A 24030.13599661 .00000167 00000+0 00000+0 0 9995 2 44800 0.0528 9.1245 0001827 312.1817 251.9987 1.00270792 15369 INMARSAT GX5 1 44801U 19080B 24030.13112333 .00000086 00000+0 00000+0 0 9993 2 44801 0.0363 13.1175 0002230 298.8100 235.1138 1.00273384 15371 EUTELSAT KONNECT 1 45027U 20005B 24029.87549649 .00000060 00000+0 00000+0 0 9998 2 45027 0.0576 90.3724 0000445 112.2614 248.3383 1.00272305 15617 MEV-2 1 46113U 20056B 24029.25605267 -.00000002 00000+0 00000+0 0 9999 2 46113 0.0173 266.5893 0000629 79.8578 232.7549 1.00270555 71823 TURKSAT 5A 1 47306U 21001A 24030.13512639 .00000166 00000+0 00000+0 0 9994 2 47306 0.0224 91.1810 0000174 290.9739 186.2504 1.00271597 11270 SBIRS GEO-5 (USA 315) 1 48618U 21042A 24029.56016669 .00000130 00000+0 00000+0 0 9994 2 48618 6.3692 325.5030 0002641 336.8536 48.4889 1.00272637 10044 TIANLIAN 1-05 1 49011U 21063A 24030.13225463 .00000120 00000+0 00000+0 0 9993 2 49011 0.6611 279.2968 0003144 13.2995 260.6529 1.00275508 9350 EUTELSAT QUANTUM 1 49056U 21069B 24029.91368649 .00000137 00000+0 00000+0 0 9994 2 49056 0.0114 13.3500 0002790 298.6990 193.2058 1.00273045 9217 SYRACUSE 4A 1 49333U 21095B 24030.13799812 .00000147 00000+0 00000+0 0 9998 2 49333 0.0163 94.5360 0001479 211.2860 278.2228 1.00271196 9278 TURKSAT 5B 1 50212U 21126A 24029.85188329 .00000157 00000+0 00000+0 0 9994 2 50212 0.0675 346.7528 0005373 332.4326 158.0452 1.00272325 7583 SHIYAN 12 01 (SY-12 01) 1 50321U 21129A 24029.89702042 .00000166 00000+0 00000+0 0 9996 2 50321 1.4228 93.5693 0001110 132.0235 254.9383 1.00442412 7788 NILESAT 301 1 52817U 22061A 24029.41135788 -.00000048 00000+0 00000+0 0 9999 2 52817 0.0515 338.3869 0005370 342.6695 308.1525 1.00272683 6016 TIANLIAN 2-03 1 53100U 22078A 24029.39162047 .00000081 00000+0 00000+0 0 9994 2 53100 1.5870 279.4320 0001952 45.2631 315.0167 1.00269007 5831 EUTELSAT KONNECT VHTS 1 53765U 22110A 24030.12827270 .00000029 00000+0 00000+0 0 9999 2 53765 0.0463 94.1097 0002968 205.2443 238.3605 1.00273234 5077 ANGOSAT 2 1 54033U 22131A 24030.13347295 .00000147 00000+0 00000+0 0 9997 2 54033 0.0219 170.0991 0000080 261.2936 128.4957 1.00272411 4764 EUTELSAT HOTBIRD 13F 1 54048U 22134A 24029.98831913 .00000098 00000+0 00000+0 0 9997 2 54048 0.0655 285.3222 0004253 6.6214 205.5485 1.00270887 4721 EUTELSAT HOTBIRD 13G 1 54225U 22146A 24029.56438279 .00000097 00000+0 00000+0 0 9998 2 54225 0.0521 252.1834 0004531 351.7326 100.5359 1.00271491 4500 EUTELSAT 10B 1 54259U 22157A 24029.55799112 .00000078 00000+0 00000+0 0 9991 2 54259 0.0523 93.0787 0005604 178.6025 67.4537 1.00271210 4308 METEOSAT-12 (MTG-I1) 1 54743U 22170C 24030.12827270 .00000027 00000+0 00000+0 0 9990 2 54743 0.3890 358.6562 0000427 260.4556 275.2779 1.00409528 4250 USA 342 1 55263U 23008A 24028.55817885 .00000145 00000+0 00000+0 0 9995 2 55263 0.0762 97.4651 0000479 12.3105 242.4490 1.00271659 3797 LUCH-5X (OLYMP-K 2) 1 55841U 23031A 24029.55642471 .00000026 00000+0 00000+0 0 9999 2 55841 0.0111 43.1657 0000690 204.9875 83.0589 1.00271352 3225 ARABSAT-7B (BADR-8) 1 56757U 23075A 24030.13408212 .00000156 00000+0 00000+0 0 9997 2 56757 0.0736 30.8122 0004942 310.5795 221.7030 1.00271950 2410 H2SAT (HEINRICH HERTZ) 1 57213U 23093A 24030.05741512 .00000012 00000+0 00000+0 0 9990 2 57213 0.0229 108.8012 0001555 332.1445 68.9852 1.00272271 2159 SYRACUSE 4B 1 57214U 23093B 24029.88105046 -.00000043 00000+0 00000+0 0 9991 2 57214 0.0185 278.7207 0000274 39.7910 120.8279 1.00269183 795
  댓글 수: 4
Dl
Dl 2024년 2월 1일
Hello man!
I have a problem again...
Now the first file looks like (filtreSatellites.txt) and the same code makes it look like (output.txt).
And I cannot undestand why, can you help me?
And the format requirements are the same as in the first message in this thread.
Stephen23
Stephen23 2024년 2월 1일
편집: Stephen23 2024년 2월 1일
You could modify the regular expression to match any number of fields and to enforce the newline matching. Perhaps something like this:
rgx = '([^\n\r]+)[\n\r]+(1( +\S+)+)[\n\r]+(2( +\S+)+)';
Checking:
txt = fileread('filteredSatellites_20240130.txt')
txt =
'GALAXY 25 (G-25) 1 24812U 97026A 24028.92063380 -.00000078 00000+0 00000+0 0 9992 2 24812 5.1815 77.6349 0007451 274.9760 121.7323 0.99098031 97595 HELLAS-SAT 2 1 27811U 03020A 24029.80451597 -.00000074 00000+0 00000+0 0 9990 2 27811 5.1686 78.0960 0007804 219.4759 110.5401 1.00271922 34129 THURAYA-2 1 27825U 03026A 24030.13765003 .00000137 00000+0 00000+0 0 9998 2 27825 7.5212 34.3905 0002926 271.6304 276.3888 1.00273178 75620 USA 170 1 27875U 03040A 24029.74354905 .00000103 00000+0 00000+0 0 9992 2 27875 8.6358 55.5477 0001561 343.4178 13.4821 1.00266323 22913 INTELSAT 10-02 1 28358U 04022A 24030.12827270 .00000001 00000+0 00000+0 0 9991 2 28358 0.0554 253.5941 0000537 81.5684 198.8720 1.00271603 71911 XTAR-EUR 1 28542U 05005A 24029.80566004 .00000161 00000+0 00000+0 0 9993 2 28542 2.0874 87.5678 0005551 211.9986 147.9852 1.00272414 69470 GALAXY 14 (G-14) 1 28790U 05030A 24030.13547447 .00000166 00000+0 00000+0 0 9999 2 28790 2.7710 85.5178 0001605 225.3129 259.6827 1.00271228 67583 SYRACUSE 3A 1 28885U 05041B 24030.13808515 .00000143 00000+0 00000+0 0 9997 2 28885 2.4161 86.6068 0003246 223.6512 274.5006 1.00273773 67026 METEOSAT-9 (MSG-2) 1 28912U 05049B 24030.13808515 .00000135 00000+0 00000+0 0 9997 2 28912 7.3658 62.0164 0000575 264.8254 257.5778 1.00279067 66364 EUTELSAT HOTBIRD 13E 1 28946U 06007B 24030.13147142 .00000098 00000+0 00000+0 0 9999 2 28946 0.0700 176.3696 0005815 119.8585 252.7371 1.00272648 65583 ASTRA 1KR 1 29055U 06012A 24029.84424382 .00000131 00000+0 00000+0 0 9995 2 29055 0.0747 274.5177 0004271 357.3158 179.8529 1.00274818 37002 EUTELSAT HOTBIRD 13B 1 29270U 06032A 24029.89702042 .00000167 00000+0 00000+0 0 9992 2 29270 0.0443 11.0786 0004350 300.7370 172.7966 1.00271328 38595 SYRACUSE 3B 1 29273U 06033B 24030.02757719 -.00000033 00000+0 00000+0 0 9997 2 29273 0.6619 91.4161 0005401 213.5858 188.4580 1.00271808 64035 BADR-4 1 29526U 06051A 24030.13408212 .00000156 00000+0 00000+0 0 9996 2 29526 0.0458 322.4332 0007843 353.0252 247.6300 1.00273923 63170 ASTRA 1L 1 31306U 07016A 24030.13277676 .00000131 00000+0 00000+0 0 9998 2 31306 0.0878 297.0383 0005486 2.1945 256.6001 1.00271091 61327 WGS F1 (USA 195) 1 32258U 07046A 24030.13016608 .00000052 00000+0 00000+0 0 9996 2 32258 0.0188 76.7307 0000123 293.7066 171.2700 1.00268037 59603 SKYNET 5B 1 32294U 07056B 24030.13390806 .00000152 00000+0 00000+0 0 9993 2 32294 3.0283 83.6655 0003941 233.1068 245.3512 1.00273281 59472 ASTRA 4A (SIRIUS 4) 1 32299U 07057A 24030.12827270 .00000044 00000+0 00000+0 0 9998 2 32299 0.0182 349.1373 0003104 315.2996 235.3863 1.00273409 59247 THOR 5 1 32487U 08006A 24030.05715406 .00000002 00000+0 00000+0 0 9995 2 32487 0.0444 257.2610 0002375 57.8938 193.4348 1.00272322 58462 AMOS-3 1 32794U 08022A 24029.32341338 -.00000026 00000+0 00000+0 0 9998 2 32794 0.0014 264.9689 0002390 19.0224 316.3537 1.00272748 73614 SKYNET 5C 1 33055U 08030A 24030.12537983 -.00000128 00000+0 00000+0 0 9994 2 33055 1.5475 86.7299 0004181 232.2707 197.1590 1.00272589 57185 TURKSAT 3A 1 33056U 08030B 24030.13730194 .00000158 00000+0 00000+0 0 9997 2 33056 0.0241 120.1712 0003017 201.1344 258.9525 1.00270506 57364 BADR-6 1 33154U 08034B 24030.13408212 .00000156 00000+0 00000+0 0 9991 2 33154 0.5989 87.2459 0006215 291.6861 184.1618 1.00271077 57030 ASTRA 1M 1 33436U 08057A 24029.91791778 .00000131 00000+0 00000+0 0 9998 2 33436 0.0389 87.0994 0000832 163.6236 227.5218 1.00273289 55760 EUTELSAT HOTBIRD 13C 1 33459U 08065A 24029.41031361 -.00000091 00000+0 00000+0 0 9998 2 33459 0.7016 88.1293 0005208 216.7249 318.4848 1.00272052 38621 EXPRESS-AM44 1 33595U 09007A 24030.03313426 -.00000078 00000+0 00000+0 0 9996 2 33595 1.2160 88.8834 0004466 216.0100 184.7734 1.00272118 54821 THOR 6 1 36033U 09058B 24029.25605267 -.00000001 00000+0 00000+0 0 9997 2 36033 0.0397 260.2931 0001910 40.9659 278.0604 1.00271611 52286 EUTELSAT 36B 1 36101U 09065A 24029.89702042 .00000166 00000+0 00000+0 0 9991 2 36101 0.0674 18.1398 0005494 298.3651 170.9362 1.00274708 52000 ASTRA 3B 1 36581U 10021A 24030.13364699 .00000148 00000+0 00000+0 0 9998 2 36581 0.0513 343.4254 0002188 327.8346 249.1981 1.00268403 49934 COMSATBW-2 1 36582U 10021B 24029.84424382 .00000099 00000+0 00000+0 0 9996 2 36582 0.0710 82.2697 0002865 235.8324 127.5630 1.00274473 50238 BADR-5 1 36592U 10025A 24030.13408212 .00000156 00000+0 00000+0 0 9993 2 36592 0.0291 131.0748 0001171 125.9883 306.0336 1.00269722 50183 ARABSAT-5A 1 36745U 10032B 24030.13495234 .00000165 00000+0 00000+0 0 9991 2 36745 0.0791 62.1107 0003021 270.1344 235.6582 1.00273530 49913 NILESAT 201 1 36830U 10037A 24030.05593573 -.00000047 00000+0 00000+0 0 9997 2 36830 0.0589 253.7921 0003335 49.5396 198.5609 1.00270444 49578 RASCOM-QAF 1R 1 36831U 10037B 24030.12827270 .00000030 00000+0 00000+0 0 9991 2 36831 0.0681 99.6484 0006569 198.6806 239.5874 1.00272527 49571 AEHF-1 (USA 214) 1 36868U 10039A 24029.87549649 .00000033 00000+0 00000+0 0 9997 2 36868 6.0281 79.1180 0000882 171.5449 197.1428 1.00269400 49721 EUTELSAT KA-SAT 9A 1 37258U 10069A 24030.13068822 .00000073 00000+0 00000+0 0 9998 2 37258 0.0659 276.5077 0002041 5.1776 263.2046 1.00267589 48108 INTELSAT NEW DAWN 1 37392U 11016A 24029.89702042 .00000166 00000+0 00000+0 0 9993 2 37392 0.0071 116.7558 0000403 209.8818 157.6856 1.00271931 44572 ASTRA 1N 1 37775U 11041A 24030.13277676 .00000132 00000+0 00000+0 0 9998 2 37775 0.0529 3.6260 0003783 351.7504 200.4720 1.00273278 45688 PAKSAT-1R 1 37779U 11042A 24030.13651874 .00000165 00000+0 00000+0 0 9995 2 37779 0.0164 101.6164 0000914 212.4498 261.9046 1.00275188 45569 ARABSAT-5C 1 37810U 11049B 24030.13295081 .00000135 00000+0 00000+0 0 9999 2 37810 0.0494 18.1995 0003245 226.4382 312.0529 1.00270647 45190 EUTELSAT 7 WEST A 1 37816U 11051A 24029.88105046 -.00000049 00000+0 00000+0 0 9994 2 37816 0.0605 2.9939 0004896 237.8852 197.5957 1.00271559 45183 EUTELSAT 16A 1 37836U 11057A 24029.84424382 .00000114 00000+0 00000+0 0 9997 2 37836 0.0658 8.9997 0005338 301.1042 138.3689 1.00270264 37257 NIGCOMSAT 1R 1 38014U 11077A 24030.13738897 .00000157 00000+0 00000+0 0 9998 2 38014 0.0052 124.0720 0003681 212.2827 244.4510 1.00272505 44317 YAHSAT 1B 1 38245U 12016A 24029.91368649 .00000137 00000+0 00000+0 0 9994 2 38245 0.0196 99.1326 0002720 231.1379 174.8830 1.00270564 36888 METEOSAT-10 (MSG-3) 1 38552U 12035B 24030.05732809 .00000006 00000+0 00000+0 0 9991 2 38552 2.6555 59.6855 0001106 251.5478 198.3915 1.00276951 42504 SES-5 1 38652U 12036A 24029.55694684 .00000044 00000+0 00000+0 0 9996 2 38652 0.0280 350.8647 0002081 314.5214 28.3752 1.00271799 35764 HYLAS 2 1 38741U 12043B 24029.89702042 .00000165 00000+0 00000+0 0 9992 2 38741 0.1763 91.7105 0001544 241.6073 149.2781 1.00275462 42052 ASTRA 2F 1 38778U 12051A 24030.13451722 .00000162 00000+0 00000+0 0 9993 2 38778 0.0856 256.1037 0003622 6.4180 302.9545 1.00272128 41578 LUCH-5B 1 38977U 12061A 24029.91078193 -.00000127 00000+0 00000+0 0 9998 2 38977 8.5810 57.9081 0002328 189.6589 192.6482 1.00273238 41462 EUTELSAT 21B 1 38992U 12062B 24029.83868942 .00000140 00000+0 00000+0 0 9990 2 38992 0.0658 8.9271 0002957 302.8480 140.2989 1.00269907 41111 AZERSPACE 1 1 39079U 13006B 24029.91368649 .00000144 00000+0 00000+0 0 9998 2 39079 0.0072 32.9068 0001713 310.4904 160.1463 1.00270569 40094 EUTELSAT 7B 1 39163U 13022A 24029.87549649 .00000059 00000+0 00000+0 0 9991 2 39163 0.0790 329.3632 0005656 9.0927 112.3272 1.00274446 39252 ALPHASAT 1 39215U 13038A 24029.83868942 .00000145 00000+0 00000+0 0 9998 2 39215 2.8682 8.6649 0002440 309.5480 137.1349 1.00269149 35301 ES'HAIL 1 1 39233U 13044A 24030.13399508 .00000156 00000+0 00000+0 0 9999 2 39233 0.0549 339.2041 0003058 338.9459 244.4842 1.00279183 38188 ASTRA 2E 1 39285U 13056A 24029.89702042 .00000161 00000+0 00000+0 0 9997 2 39285 0.0745 319.2395 0002707 340.8395 179.9480 1.00269361 37720 RADUGA-1M 3 1 39375U 13062A 24030.13590958 .00000165 00000+0 00000+0 0 9998 2 39375 3.7401 82.9926 0000801 66.4901 63.2878 1.00272581 37410 ATHENA-FIDUS 1 39509U 14006B 24030.13643174 .00000166 00000+0 00000+0 0 9996 2 39509 0.0149 135.4167 0001137 184.1528 256.1867 1.00272436 36784 TURKSAT 4A 1 39522U 14007A 24030.13730194 .00000158 00000+0 00000+0 0 9992 2 39522 0.0894 266.1533 0004814 23.2696 290.8476 1.00273496 36495 ASTRA 5B 1 39617U 14011B 24030.13355997 .00000149 00000+0 00000+0 0 9996 2 39617 0.0703 301.5369 0004459 1.8935 256.9887 1.00273647 36153 EUTELSAT 3B 1 39773U 14030A 24029.87549649 .00000031 00000+0 00000+0 0 9998 2 39773 0.0609 8.3794 0004330 235.3062 203.1747 1.00271333 35358 ASIASAT 8 (AMOS-7) 1 40107U 14046A 24029.88105046 -.00000023 00000+0 00000+0 0 9990 2 40107 0.0057 268.7309 0002121 36.9265 136.2287 1.00271442 93426 LUCH (OLYMP-K 1) 1 40258U 14058A 24029.40900828 -.00000131 00000+0 00000+0 0 9999 2 40258 0.0280 118.6578 0001041 177.2210 321.4265 1.00275899 32271 ASTRA 2G 1 40364U 14089A 24030.13451722 .00000162 00000+0 00000+0 0 9990 2 40364 0.0520 325.2421 0002550 48.6667 191.5480 1.00273849 33305 MUOS-3 1 40374U 15002A 24030.12572792 -.00000117 00000+0 00000+0 0 9998 2 40374 3.0479 32.0993 0056101 183.7855 302.7660 1.00271781 33107 ABS-3A 1 40424U 15010A 24030.02757719 -.00000016 00000+0 00000+0 0 9994 2 40424 0.0109 75.7810 0001816 139.3288 280.5971 1.00268178 32655 EXPRESS-AM7 1 40505U 15012A 24030.13686684 .00000162 00000+0 00000+0 0 9991 2 40505 0.0182 73.6884 0002800 226.2832 278.1340 1.00270726 32643 THOR 7 1 40613U 15022A 24029.25605267 .00000001 00000+0 00000+0 0 9993 2 40613 0.0134 123.0189 0002697 191.1183 265.3623 1.00272542 32090 METEOSAT-11 (MSG-4) 1 40732U 15034A 24030.13077524 .00000073 00000+0 00000+0 0 9995 2 40732 1.0558 64.3037 0002512 202.7721 278.0568 1.00270366 31297 EUTELSAT 8 WEST B 1 40875U 15039B 24029.88105046 -.00000055 00000+0 00000+0 0 9990 2 40875 0.0637 8.5872 0003973 306.7766 122.4119 1.00271150 30931 EXPRESS-AM8 1 40895U 15048A 24030.05454337 -.00000100 00000+0 00000+0 0 9994 2 40895 0.0060 271.0682 0000452 238.6130 344.7194 1.00271042 30668 TURKSAT 4B 1 40984U 15060A 24030.13886837 .00000127 00000+0 00000+0 0 9998 2 40984 0.0322 286.3783 0002170 18.6427 283.7960 1.00273344 30371 BADR-7 (ARABSAT-6B) 1 41029U 15065B 24029.83868942 .00000156 00000+0 00000+0 0 9998 2 41029 0.0523 250.0153 0004300 2.2050 204.2651 1.00275087 30047 TELSTAR 12V 1 41036U 15068A 24030.12572792 -.00000108 00000+0 00000+0 0 9996 2 41036 0.0216 89.7466 0002437 233.5941 195.7754 1.00269359 30015 ELEKTRO-L 2 1 41105U 15074A 24029.40987851 -.00000108 00000+0 00000+0 0 9995 2 41105 4.4838 81.1562 0003360 201.1236 338.9422 1.00271467 29785 EXPRESS-AMU1 1 41191U 15082A 24030.13608362 .00000167 00000+0 00000+0 0 9992 2 41191 0.0175 87.7844 0002558 206.4924 279.6515 1.00273731 29792 EUTELSAT 9B 1 41310U 16005A 24030.13068822 .00000073 00000+0 00000+0 0 9998 2 41310 0.0265 59.8464 0004731 227.4551 257.5751 1.00271105 29393 IRNSS-1F 1 41384U 16015A 24030.13530043 .00000169 00000+0 00000+0 0 9995 2 41384 3.2513 123.2508 0021534 186.3180 260.3630 1.00272634 28947 USA 271 1 41745U 16052B 24028.26879288 .00000049 00000+0 00000+0 0 9992 2 41745 1.9259 88.3409 0000635 247.0540 257.4553 1.00164494 19197 WGS F9 (USA 275) 1 42075U 17016A 24030.05489146 -.00000086 00000+0 00000+0 0 9992 2 42075 0.0157 106.4209 0000328 226.3835 163.7038 1.00268007 25219 GSAT-19 1 42747U 17031A 24030.13843324 .00000137 00000+0 00000+0 0 9992 2 42747 0.0295 103.0315 0002633 260.5294 222.9853 1.00272523 24411 ECHOSTAR 21 1 42749U 17032A 24030.13094928 .00000079 00000+0 00000+0 0 9998 2 42749 2.7856 316.9314 0002728 342.5280 246.8024 1.00274032 24401 BULGARIASAT-1 1 42801U 17038A 24030.12929586 .00000022 00000+0 00000+0 0 9997 2 42801 0.0535 90.8874 0002596 216.8697 229.5224 1.00270599 24192 HELLAS-SAT 3 1 42814U 17040A 24030.13669279 .00000164 00000+0 00000+0 0 9992 2 42814 0.0574 1.8559 0004288 336.4889 238.6906 1.00271354 24146 COSMOS 2520 1 42907U 17046A 24030.13791111 .00000149 00000+0 00000+0 0 9995 2 42907 0.0284 106.3217 0000233 187.2255 289.9489 1.00272940 23678 TDRS 13 1 42915U 17047A 24030.05506551 -.00000086 00000+0 00000+0 0 9999 2 42915 3.7595 341.8105 0012308 110.2250 45.0354 1.00272571 23662 INTELSAT 37E (IS-37E) 1 42950U 17059A 24030.12537983 -.00000130 00000+0 00000+0 0 9992 2 42950 0.0128 90.3106 0002582 215.3026 210.3787 1.00268193 23337 AZERSPACE 2 (IS-38) 1 43632U 18074A 24030.13791111 .00000148 00000+0 00000+0 0 9992 2 43632 0.0183 81.9184 0001460 229.0581 272.6184 1.00271105 19727 ES'HAIL 2 1 43700U 18090A 24029.83868942 .00000155 00000+0 00000+0 0 9996 2 43700 0.0174 79.1763 0001131 230.5913 146.5150 1.00275035 18969 HELLAS-SAT 4 & SGS-1 1 44034U 19007A 24029.54163899 .00000162 00000+0 00000+0 0 9991 2 44034 0.0686 125.2674 0003259 49.7265 187.2461 1.00270943 18639 GSAT-31 1 44035U 19007B 24030.06681358 .00000137 00000+0 00000+0 0 9998 2 44035 0.0827 266.2386 0005779 18.2485 276.2010 1.00273255 18242 ARABSAT-6A 1 44186U 19021A 24030.13495234 .00000166 00000+0 00000+0 0 9997 2 44186 0.0371 28.5450 0004365 269.9633 269.4150 1.00279014 17432 YAMAL 601 1 44307U 19031A 24030.13869431 .00000132 00000+0 00000+0 0 9990 2 44307 0.0159 123.9387 0002547 180.6333 283.2020 1.00271971 17193 EUTELSAT 7C 1 44334U 19034B 24030.13034013 .00000060 00000+0 00000+0 0 9993 2 44334 0.0723 196.7609 0003251 100.8216 245.1802 1.00271513 17414 COSMOS 2539 1 44457U 19048A 24030.13129737 .00000093 00000+0 00000+0 0 9998 2 44457 0.0219 117.9999 0000309 219.8178 210.3002 1.00270996 16516 EDRS-C 1 44475U 19049A 24029.55698717 .00000164 00000+0 00000+0 0 9991 2 44475 0.0774 254.7852 0000427 15.5011 89.6835 1.00270267 16486 AMOS-17 1 44479U 19050A 24030.13234166 .00000121 00000+0 00000+0 0 9990 2 44479 0.0196 79.7750 0001871 250.1269 223.5938 1.00273784 16464 EUTELSAT 5 WEST B 1 44624U 19067A 24030.02757719 -.00000031 00000+0 00000+0 0 9993 2 44624 0.1089 305.9124 0003150 5.2582 182.4897 1.00273317 15723 TIBA-1 1 44800U 19080A 24030.13599661 .00000167 00000+0 00000+0 0 9995 2 44800 0.0528 9.1245 0001827 312.1817 251.9987 1.00270792 15369 INMARSAT GX5 1 44801U 19080B 24030.13112333 .00000086 00000+0 00000+0 0 9993 2 44801 0.0363 13.1175 0002230 298.8100 235.1138 1.00273384 15371 EUTELSAT KONNECT 1 45027U 20005B 24029.87549649 .00000060 00000+0 00000+0 0 9998 2 45027 0.0576 90.3724 0000445 112.2614 248.3383 1.00272305 15617 EUTELSAT KONNECT MEV-2 1 46113U 20056B 24029.25605267 -.00000002 00000+0 00000+0 0 9999 2 46113 0.0173 266.5893 0000629 79.8578 232.7549 1.00270555 71823 TURKSAT 5A 1 47306U 21001A 24030.13512639 .00000166 00000+0 00000+0 0 9994 2 47306 0.0224 91.1810 0000174 290.9739 186.2504 1.00271597 11270 SBIRS GEO-5 (USA 315) 1 48618U 21042A 24029.56016669 .00000130 00000+0 00000+0 0 9994 2 48618 6.3692 325.5030 0002641 336.8536 48.4889 1.00272637 10044 TIANLIAN 1-05 1 49011U 21063A 24030.13225463 .00000120 00000+0 00000+0 0 9993 2 49011 0.6611 279.2968 0003144 13.2995 260.6529 1.00275508 9350 EUTELSAT QUANTUM 1 49056U 21069B 24029.91368649 .00000137 00000+0 00000+0 0 9994 2 49056 0.0114 13.3500 0002790 298.6990 193.2058 1.00273045 9217 SYRACUSE 4A 1 49333U 21095B 24030.13799812 .00000147 00000+0 00000+0 0 9998 2 49333 0.0163 94.5360 0001479 211.2860 278.2228 1.00271196 9278 TURKSAT 5B 1 50212U 21126A 24029.85188329 .00000157 00000+0 00000+0 0 9994 2 50212 0.0675 346.7528 0005373 332.4326 158.0452 1.00272325 7583 SHIYAN 12 01 (SY-12 01) 1 50321U 21129A 24029.89702042 .00000166 00000+0 00000+0 0 9996 2 50321 1.4228 93.5693 0001110 132.0235 254.9383 1.00442412 7788 NILESAT 301 1 52817U 22061A 24029.41135788 -.00000048 00000+0 00000+0 0 9999 2 52817 0.0515 338.3869 0005370 342.6695 308.1525 1.00272683 6016 TIANLIAN 2-03 1 53100U 22078A 24029.39162047 .00000081 00000+0 00000+0 0 9994 2 53100 1.5870 279.4320 0001952 45.2631 315.0167 1.00269007 5831 EUTELSAT KONNECT VHTS 1 53765U 22110A 24030.12827270 .00000029 00000+0 00000+0 0 9999 2 53765 0.0463 94.1097 0002968 205.2443 238.3605 1.00273234 5077 ANGOSAT 2 1 54033U 22131A 24030.13347295 .00000147 00000+0 00000+0 0 9997 2 54033 0.0219 170.0991 0000080 261.2936 128.4957 1.00272411 4764 EUTELSAT HOTBIRD 13F 1 54048U 22134A 24029.98831913 .00000098 00000+0 00000+0 0 9997 2 54048 0.0655 285.3222 0004253 6.6214 205.5485 1.00270887 4721 EUTELSAT HOTBIRD 13G 1 54225U 22146A 24029.56438279 .00000097 00000+0 00000+0 0 9998 2 54225 0.0521 252.1834 0004531 351.7326 100.5359 1.00271491 4500 EUTELSAT 10B 1 54259U 22157A 24029.55799112 .00000078 00000+0 00000+0 0 9991 2 54259 0.0523 93.0787 0005604 178.6025 67.4537 1.00271210 4308 METEOSAT-12 (MTG-I1) 1 54743U 22170C 24030.12827270 .00000027 00000+0 00000+0 0 9990 2 54743 0.3890 358.6562 0000427 260.4556 275.2779 1.00409528 4250 USA 342 1 55263U 23008A 24028.55817885 .00000145 00000+0 00000+0 0 9995 2 55263 0.0762 97.4651 0000479 12.3105 242.4490 1.00271659 3797 LUCH-5X (OLYMP-K 2) 1 55841U 23031A 24029.55642471 .00000026 00000+0 00000+0 0 9999 2 55841 0.0111 43.1657 0000690 204.9875 83.0589 1.00271352 3225 ARABSAT-7B (BADR-8) 1 56757U 23075A 24030.13408212 .00000156 00000+0 00000+0 0 9997 2 56757 0.0736 30.8122 0004942 310.5795 221.7030 1.00271950 2410 H2SAT (HEINRICH HERTZ) 1 57213U 23093A 24030.05741512 .00000012 00000+0 00000+0 0 9990 2 57213 0.0229 108.8012 0001555 332.1445 68.9852 1.00272271 2159 SYRACUSE 4B 1 57214U 23093B 24029.88105046 -.00000043 00000+0 00000+0 0 9991 2 57214 0.0185 278.7207 0000274 39.7910 120.8279 1.00269183 795 '
tkn = regexp(txt,rgx,'tokens');
tkn = vertcat(tkn{:})
tkn = 121×3 cell array
{'GALAXY 25 (G-25)' } {'1 24812U 97026A 24028.92063380 -.00000078 00000+0 000…'} {'2 24812 5.1815 77.6349 0007451 274.9760 121.7323 0.99…'} {'HELLAS-SAT 2' } {'1 27811U 03020A 24029.80451597 -.00000074 00000+0 000…'} {'2 27811 5.1686 78.0960 0007804 219.4759 110.5401 1.00…'} {'THURAYA-2' } {'1 27825U 03026A 24030.13765003 .00000137 00000+0 000…'} {'2 27825 7.5212 34.3905 0002926 271.6304 276.3888 1.00…'} {'USA 170' } {'1 27875U 03040A 24029.74354905 .00000103 00000+0 000…'} {'2 27875 8.6358 55.5477 0001561 343.4178 13.4821 1.00…'} {'INTELSAT 10-02' } {'1 28358U 04022A 24030.12827270 .00000001 00000+0 000…'} {'2 28358 0.0554 253.5941 0000537 81.5684 198.8720 1.00…'} {'XTAR-EUR' } {'1 28542U 05005A 24029.80566004 .00000161 00000+0 000…'} {'2 28542 2.0874 87.5678 0005551 211.9986 147.9852 1.00…'} {'GALAXY 14 (G-14)' } {'1 28790U 05030A 24030.13547447 .00000166 00000+0 000…'} {'2 28790 2.7710 85.5178 0001605 225.3129 259.6827 1.00…'} {'SYRACUSE 3A' } {'1 28885U 05041B 24030.13808515 .00000143 00000+0 000…'} {'2 28885 2.4161 86.6068 0003246 223.6512 274.5006 1.00…'} {'METEOSAT-9 (MSG-2)' } {'1 28912U 05049B 24030.13808515 .00000135 00000+0 000…'} {'2 28912 7.3658 62.0164 0000575 264.8254 257.5778 1.00…'} {'EUTELSAT HOTBIRD 13E'} {'1 28946U 06007B 24030.13147142 .00000098 00000+0 000…'} {'2 28946 0.0700 176.3696 0005815 119.8585 252.7371 1.00…'} {'ASTRA 1KR' } {'1 29055U 06012A 24029.84424382 .00000131 00000+0 000…'} {'2 29055 0.0747 274.5177 0004271 357.3158 179.8529 1.00…'} {'EUTELSAT HOTBIRD 13B'} {'1 29270U 06032A 24029.89702042 .00000167 00000+0 000…'} {'2 29270 0.0443 11.0786 0004350 300.7370 172.7966 1.00…'} {'SYRACUSE 3B' } {'1 29273U 06033B 24030.02757719 -.00000033 00000+0 000…'} {'2 29273 0.6619 91.4161 0005401 213.5858 188.4580 1.00…'} {'BADR-4' } {'1 29526U 06051A 24030.13408212 .00000156 00000+0 000…'} {'2 29526 0.0458 322.4332 0007843 353.0252 247.6300 1.00…'} {'ASTRA 1L' } {'1 31306U 07016A 24030.13277676 .00000131 00000+0 000…'} {'2 31306 0.0878 297.0383 0005486 2.1945 256.6001 1.00…'} {'WGS F1 (USA 195)' } {'1 32258U 07046A 24030.13016608 .00000052 00000+0 000…'} {'2 32258 0.0188 76.7307 0000123 293.7066 171.2700 1.00…'} {'SKYNET 5B' } {'1 32294U 07056B 24030.13390806 .00000152 00000+0 000…'} {'2 32294 3.0283 83.6655 0003941 233.1068 245.3512 1.00…'} {'ASTRA 4A (SIRIUS 4)' } {'1 32299U 07057A 24030.12827270 .00000044 00000+0 000…'} {'2 32299 0.0182 349.1373 0003104 315.2996 235.3863 1.00…'} {'THOR 5' } {'1 32487U 08006A 24030.05715406 .00000002 00000+0 000…'} {'2 32487 0.0444 257.2610 0002375 57.8938 193.4348 1.00…'} {'AMOS-3' } {'1 32794U 08022A 24029.32341338 -.00000026 00000+0 000…'} {'2 32794 0.0014 264.9689 0002390 19.0224 316.3537 1.00…'} {'SKYNET 5C' } {'1 33055U 08030A 24030.12537983 -.00000128 00000+0 000…'} {'2 33055 1.5475 86.7299 0004181 232.2707 197.1590 1.00…'} {'TURKSAT 3A' } {'1 33056U 08030B 24030.13730194 .00000158 00000+0 000…'} {'2 33056 0.0241 120.1712 0003017 201.1344 258.9525 1.00…'} {'BADR-6' } {'1 33154U 08034B 24030.13408212 .00000156 00000+0 000…'} {'2 33154 0.5989 87.2459 0006215 291.6861 184.1618 1.00…'} {'ASTRA 1M' } {'1 33436U 08057A 24029.91791778 .00000131 00000+0 000…'} {'2 33436 0.0389 87.0994 0000832 163.6236 227.5218 1.00…'} {'EUTELSAT HOTBIRD 13C'} {'1 33459U 08065A 24029.41031361 -.00000091 00000+0 000…'} {'2 33459 0.7016 88.1293 0005208 216.7249 318.4848 1.00…'} {'EXPRESS-AM44' } {'1 33595U 09007A 24030.03313426 -.00000078 00000+0 000…'} {'2 33595 1.2160 88.8834 0004466 216.0100 184.7734 1.00…'} {'THOR 6' } {'1 36033U 09058B 24029.25605267 -.00000001 00000+0 000…'} {'2 36033 0.0397 260.2931 0001910 40.9659 278.0604 1.00…'} {'EUTELSAT 36B' } {'1 36101U 09065A 24029.89702042 .00000166 00000+0 000…'} {'2 36101 0.0674 18.1398 0005494 298.3651 170.9362 1.00…'} {'ASTRA 3B' } {'1 36581U 10021A 24030.13364699 .00000148 00000+0 000…'} {'2 36581 0.0513 343.4254 0002188 327.8346 249.1981 1.00…'} {'COMSATBW-2' } {'1 36582U 10021B 24029.84424382 .00000099 00000+0 000…'} {'2 36582 0.0710 82.2697 0002865 235.8324 127.5630 1.00…'}
txt = fileread('filteredSatellites_20240201.txt')
txt =
'TDRS 3 1 19548U 88091B 24031.76631722 -.00000284 00000+0 00000+0 0 9990 2 19548 13.2685 346.8875 0041042 337.6970 32.9396 1.00271422116695 FLTSATCOM 8 (USA 46) 1 20253U 89077A 24031.49285605 -.00000354 00000+0 00000+0 0 9993 2 20253 12.6764 356.4042 0006322 319.7390 117.2244 1.00266772251920 SKYNET 4C 1 20776U 90079A 24032.06906926 .00000140 00000+0 00000+0 0 9999 2 20776 13.6194 355.7475 0003136 321.3699 231.9425 1.00270464122241 TDRS 5 1 21639U 91054B 24031.43920669 .00000113 00000+0 00000+0 0 9992 2 21639 14.1794 0.1252 0006436 358.9019 122.3359 1.00576154119008 TDRS 6 1 22314U 93003B 24031.87283479 -.00000283 00000+0 00000+0 0 9997 2 22314 14.1581 3.4207 0006454 157.6165 237.5854 1.00264034113717 UFO 2 (USA 95) 1 22787U 93056A 24031.88174573 .00000139 00000+0 00000+0 0 9993 2 22787 11.6170 8.0688 0003317 308.6129 160.0544 1.00275447109850 USA 99 (MILSTAR-1 1) 1 22988U 94009A 24031.97308321 -.00000187 00000+0 00000+0 0 9999 2 22988 16.2931 36.8856 0003327 276.9152 77.2007 1.00274391 22943 UFO 4 (USA 108) 1 23467U 95003A 24031.73873101 -.00000007 00000+0 00000+0 0 9995 2 23467 9.6968 15.8909 0001176 255.3340 297.5519 1.00275734106252 AMSC 1 1 23553U 95019A 24031.53974354 -.00000082 00000+0 00000+0 0 9991 2 23553 12.5006 22.2850 0006687 284.1225 270.6389 1.00272156105470 TDRS 7 1 23613U 95035B 24031.85825343 -.00000189 00000+0 00000+0 0 9992 2 23613 13.7386 354.2003 0023797 59.4415 110.7547 1.00275946104552 USA 115 (MILSTAR-1 2) 1 23712U 95060A 24032.03861132 -.00000007 00000+0 00000+0 0 9996 2 23712 13.7492 10.0014 0003960 289.0079 85.6121 1.00274419 22951 INMARSAT 3-F1 1 23839U 96020A 24032.07550895 .00000062 00000+0 00000+0 0 9998 2 23839 8.7765 53.9614 0004309 237.6842 291.2846 0.99976351101885 INMARSAT 3-F2 1 24307U 96053A 24031.40790413 -.00000274 00000+0 00000+0 0 9999 2 24307 7.8702 62.1741 0003905 268.0940 255.8057 0.99992912100248 INMARSAT 3-F3 1 24674U 96070A 24031.81461483 .00000095 00000+0 00000+0 0 9992 2 24674 8.4226 57.3463 0005739 238.7541 321.7469 1.00000730 99235 GALAXY 25 (G-25) 1 24812U 97026A 24031.84829262 -.00000139 00000+0 00000+0 0 9994 2 24812 5.1893 77.6023 0007434 277.6040 83.6074 0.99098356 97636 INTELSAT 5 (IS-5) 1 24916U 97046A 24031.88066507 -.00000051 00000+0 00000+0 0 9993 2 24916 8.5034 56.6049 0004979 215.0677 342.0810 1.00272041 96911 AMC-3 (GE-3) 1 24936U 97050A 24031.54687941 -.00000248 00000+0 00000+0 0 9992 2 24936 6.0034 73.6285 0002986 241.5836 299.9100 1.00271853 43738 USA 134 1 25019U 97065A 24031.63732726 -.00000051 00000+0 00000+0 0 9995 2 25019 11.7447 27.7459 0004273 298.0796 281.9038 1.00272914 24254 INMARSAT 3-F5 1 25153U 98006B 24032.14491002 -.00000277 00000+0 00000+0 0 9996 2 25153 7.7324 61.2524 0004849 255.9407 171.8298 1.00270587 95198 SKYNET 4E 1 25639U 99009B 24031.70418299 -.00000021 00000+0 00000+0 0 9994 2 25639 11.5565 13.8005 0003588 291.2602 77.6416 1.00273538 42694 UFO 10 (USA 146) 1 25967U 99063A 24031.84289722 -.00000174 00000+0 00000+0 0 9999 2 25967 9.3657 31.2264 0004935 252.4625 127.4942 1.00273993 88645 ASIASTAR 1 26107U 00016A 24032.08334100 -.00000320 00000+0 00000+0 0 9997 2 26107 7.0800 66.8552 0004429 247.3118 311.6311 1.00271465 87456 USA 149 (DSP 20) 1 26356U 00024A 24031.67154948 .00000107 00000+0 00000+0 0 9998 2 26356 12.5145 17.6856 0001668 274.2600 274.8451 1.00262275 24212 TDRS 8 1 26388U 00034A 24031.74264705 .00000107 00000+0 00000+0 0 9995 2 26388 11.3199 38.3135 0005372 246.8091 304.9143 1.00270216 86482 INTELSAT 9 (IS-9) 1 26451U 00043A 24022.95757295 -.00000293 00000+0 00000+0 0 9997 2 26451 8.4689 56.8767 0003804 236.9187 122.7041 1.00270359 35355 USA 153 1 26575U 00065A 24031.87448646 -.00000311 00000+0 00000+0 0 9997 2 26575 10.1148 41.9556 0002142 243.9175 294.0054 1.00271872 24235 INTELSAT 1R (IS-1R) 1 26608U 00072A 24031.95054432 -.00000126 00000+0 00000+0 0 9991 2 26608 5.8999 74.1421 0001560 239.5236 316.2897 1.00270309 84959 USA 157 (MILSTAR-2 2) 1 26715U 01009A 24031.66717108 .00000025 00000+0 00000+0 0 9992 2 26715 10.6010 24.5309 0003278 277.5276 304.3224 1.00276416 24258 INTELSAT 10 (IS-10) 1 26766U 01019A 24031.81069881 -.00000001 00000+0 00000+0 0 9999 2 26766 6.9925 67.9853 0003713 235.7835 292.7408 1.00163729 36926 ASTRA 2C 1 26853U 01025A 24031.54679238 -.00000246 00000+0 00000+0 0 9997 2 26853 6.0254 73.4534 0003008 237.7766 303.3933 1.00272316 36340 USA 159 (DSP 21) 1 26880U 01033A 24031.83784990 -.00000285 00000+0 00000+0 0 9993 2 26880 11.9651 22.1473 0001645 359.3521 1.4043 1.00265908 22920 USA 164 (MILSTAR-2 3) 1 27168U 02001A 24031.70827306 .00000065 00000+0 00000+0 0 9999 2 27168 10.1556 26.4857 0100427 356.9302 20.8775 1.00271590 24266 NSS-7 1 27414U 02019A 24020.45696074 -.00000162 00000+0 00000+0 0 9997 2 27414 7.2668 66.2214 0002647 251.3416 306.2509 1.00271192 79757 TDRS 10 1 27566U 02055A 24031.74203788 .00000100 00000+0 00000+0 0 9996 2 27566 9.3031 46.3441 0005799 304.9034 235.1713 1.00274438 77532 NIMIQ 2 1 27632U 02062A 24031.63945355 -.00000054 00000+0 00000+0 0 9998 2 27632 7.4046 65.4940 0005080 239.4695 306.3757 1.00274198 35485 USA 167 1 27691U 03008A 24031.66290493 .00000063 00000+0 00000+0 0 9992 2 27691 9.2189 50.5383 0002540 254.4456 294.1559 1.00277388 24255 USA 169 (MILSTAR-2 4) 1 27711U 03012A 24031.80634766 -.00000183 00000+0 00000+0 0 9995 2 27711 11.0186 36.3281 0098771 357.1408 179.4587 1.00273961 24253 HELLAS-SAT 2 1 27811U 03020A 24031.98892133 -.00000069 00000+0 00000+0 0 9991 2 27811 5.1737 78.0701 0007638 221.8292 176.7533 1.00271913 75645 THURAYA-2 1 27825U 03026A 24031.79797491 .00000140 00000+0 00000+0 0 9991 2 27825 7.5232 34.3867 0003033 269.3889 157.9787 1.00271007 75655 USA 170 1 27875U 03040A 24031.80083065 .00000107 00000+0 00000+0 0 9992 2 27875 8.6397 55.5294 0001726 347.1584 32.3648 1.00266754 24285 UFO 11 (USA 174) 1 28117U 03057A 24032.07742345 -.00000087 00000+0 00000+0 0 9991 2 28117 7.8526 37.1045 0002374 275.7480 281.0608 1.00272590 73728 USA 176 (DSP 22) 1 28158U 04004A 24032.00824038 -.00000206 00000+0 00000+0 0 9995 2 28158 10.8748 31.8582 0001325 297.1274 252.0222 1.00275695 22918 METEOSAT-9 (MSG-2) 1 28912U 05049B 24031.68611213 .00000140 00000+0 00000+0 0 9991 2 28912 7.3696 62.0013 0000250 31.6512 329.5802 1.00263087 66358 AMC-14 1 32708U 08011A 24030.20387431 .00000080 00000+0 00000+0 0 9993 2 32708 22.9001 30.9746 0041500 352.3156 196.4812 1.00270678 59444 FENGYUN 2E 1 33463U 08066A 24032.07977307 -.00000191 00000+0 00000+0 0 9990 2 33463 7.2366 61.3188 0001547 296.5836 248.3880 1.00272456 55402 SDO 1 36395U 10005A 24030.18198360 -.00000068 00000+0 00000+0 0 9990 2 36395 32.8354 99.7718 0003391 232.6265 119.6089 1.00277762 51345 BEIDOU-2 IGSO-1 1 36828U 10036A 24031.84424535 -.00000088 00000+0 00000+0 0 9997 2 36828 54.2474 170.8118 0038901 193.0590 179.0106 1.00266810 49516 AEHF-1 (USA 214) 1 36868U 10039A 24031.92008635 .00000038 00000+0 00000+0 0 9996 2 36868 6.0328 79.0912 0000705 172.3266 214.4394 1.00269824 49742 BEIDOU-2 IGSO-2 1 37256U 10068A 24031.47966093 -.00000172 00000+0 00000+0 0 9991 2 37256 49.1316 282.4968 0031185 213.4147 273.0470 1.00294956 48098 BEIDOU-2 IGSO-3 1 37384U 11013A 24031.62686556 -.00000155 00000+0 00000+0 0 9995 2 37384 61.1547 48.4392 0028253 184.6144 229.7950 1.00293944 46960 BEIDOU-2 IGSO-4 1 37763U 11038A 24031.86229840 -.00000007 00000+0 00000+0 0 9994 2 37763 54.5550 173.3945 0118002 226.7433 135.4032 1.00288021 45956 BEIDOU-2 IGSO-5 1 37948U 11073A 24031.72606958 -.00000126 00000+0 00000+0 0 9994 2 37948 49.2609 282.1730 0093564 220.7010 343.8578 1.00282966 44432 LUCH-5A 1 37951U 11074B 24031.88092615 -.00000034 00000+0 00000+0 0 9993 2 37951 6.5281 87.2118 0002790 219.6696 307.7787 1.00274487 44496 FENGYUN 2F 1 38049U 12002A 24032.08482038 -.00000342 00000+0 00000+0 0 9991 2 38049 5.2514 74.4892 0001801 24.1517 174.6911 1.00264898 44192 LUCH-5B 1 38977U 12061A 24031.84446361 -.00000123 00000+0 00000+0 0 9995 2 38977 8.5848 57.8902 0002144 189.6523 170.7117 1.00273040 40910 IRNSS-1A 1 39199U 13034A 24031.76600325 .00000080 00000+0 00000+0 0 9997 2 39199 33.7644 76.4743 0021023 190.3094 194.5920 1.00278601 38674 IRNSS-1B 1 39635U 14017A 24030.71269642 .00000135 00000+0 00000+0 0 9992 2 39635 29.2548 255.1543 0017271 178.5460 7.4883 1.00276775 36084 IRNSS-1D 1 40547U 15018A 24031.72208703 -.00000249 00000+0 00000+0 0 9998 2 40547 27.7664 255.0735 0018450 177.0490 70.0747 1.00271701 32286 BEIDOU-3S IGSO-1S 1 40549U 15019A 24031.75846281 -.00000169 00000+0 00000+0 0 9994 2 40549 50.8272 305.8146 0035082 194.1388 359.2608 1.00279940 32377 BEIDOU-3S IGSO-2S 1 40938U 15053A 24017.60469617 -.00000107 00000+0 00000+0 0 9998 2 40938 50.5932 269.1737 0046153 191.7705 325.9662 1.00252427 30519 IRNSS-1E 1 41241U 16003A 24030.63486285 -.00000292 00000+0 00000+0 0 9995 2 41241 31.3154 75.5554 0021512 190.5703 203.5735 1.00269480 29497 BEIDOU-2 IGSO-6 1 41434U 16021A 24031.76654497 -.00000115 00000+0 00000+0 0 9990 2 41434 58.9698 46.7384 0049508 226.2308 225.6469 1.00255157 28789 QZS-2 (MICHIBIKI-2) 1 42738U 17028A 24030.94633562 -.00000106 00000+0 00000+0 0 9995 2 42738 40.7961 255.7344 0751272 269.9334 86.4922 1.00272969 24433 QZS-4 (MICHIBIKI-4) 1 42965U 17062A 24031.23203122 -.00000318 00000+0 00000+0 0 9998 2 42965 40.5754 354.5413 0750892 269.0008 87.6204 1.00293488 23113 IRNSS-1I 1 43286U 18035A 24031.72833584 .00000090 00000+0 00000+0 0 9997 2 43286 28.7888 87.8132 0020723 187.2943 172.6499 1.00277471 21373 BEIDOU-2 IGSO-7 1 43539U 18057A 24031.79834157 -.00000090 00000+0 00000+0 0 9997 2 43539 55.1370 170.5691 0069453 230.5826 127.2814 1.00295025 20437 BEIDOU-3 IGSO-2 1 44337U 19035A 24031.27271733 -.00000103 00000+0 00000+0 0 9994 2 44337 55.1692 166.4793 0031515 201.5541 339.3266 1.00284203 16964 BEIDOU-3 IGSO-3 1 44709U 19073A 24031.11728321 -.00000169 00000+0 00000+0 0 9994 2 44709 56.2821 290.1859 0034863 181.5223 178.5562 1.00291697 15757 JCSAT-17 1 45245U 20013A 24031.23002969 -.00000299 00000+0 00000+0 0 9996 2 45245 5.6725 348.8170 0004426 326.4055 33.5086 1.00270511 14523 SBIRS GEO-5 (USA 315) 1 48618U 21042A 24031.80503704 .00000137 00000+0 00000+0 0 9992 2 48618 6.3659 325.5014 0002516 339.7631 135.9531 1.00273396 10069 SHIJIAN-21 (SJ-21) 1 49330U 21094A 24031.84424535 -.00000325 00000+0 00000+0 0 9999 2 49330 9.5526 46.2338 0078931 28.8971 101.3807 1.00382454 8563 QZS-1R 1 49336U 21096A 24031.55743687 -.00000277 00000+0 00000+0 0 9993 2 49336 35.6601 92.6309 0760951 272.1187 96.0372 1.00240858 8310 LUDI TANCE-4 01A 1 57624U 23120A 24031.71983008 -.00000157 00000+0 00000+0 0 9990 2 57624 15.9026 214.9955 0003247 110.3249 153.7614 1.00268450 1846'
tkn = regexp(txt,rgx,'tokens');
tkn = vertcat(tkn{:})
tkn = 73×3 cell array
{'TDRS 3' } {'1 19548U 88091B 24031.76631722 -.00000284 00000+0 000…'} {'2 19548 13.2685 346.8875 0041042 337.6970 32.9396 1.00…'} {'FLTSATCOM 8 (USA 46)' } {'1 20253U 89077A 24031.49285605 -.00000354 00000+0 000…'} {'2 20253 12.6764 356.4042 0006322 319.7390 117.2244 1.00…'} {'SKYNET 4C' } {'1 20776U 90079A 24032.06906926 .00000140 00000+0 000…'} {'2 20776 13.6194 355.7475 0003136 321.3699 231.9425 1.00…'} {'TDRS 5' } {'1 21639U 91054B 24031.43920669 .00000113 00000+0 000…'} {'2 21639 14.1794 0.1252 0006436 358.9019 122.3359 1.00…'} {'TDRS 6' } {'1 22314U 93003B 24031.87283479 -.00000283 00000+0 000…'} {'2 22314 14.1581 3.4207 0006454 157.6165 237.5854 1.00…'} {'UFO 2 (USA 95)' } {'1 22787U 93056A 24031.88174573 .00000139 00000+0 000…'} {'2 22787 11.6170 8.0688 0003317 308.6129 160.0544 1.00…'} {'USA 99 (MILSTAR-1 1)' } {'1 22988U 94009A 24031.97308321 -.00000187 00000+0 000…'} {'2 22988 16.2931 36.8856 0003327 276.9152 77.2007 1.00…'} {'UFO 4 (USA 108)' } {'1 23467U 95003A 24031.73873101 -.00000007 00000+0 000…'} {'2 23467 9.6968 15.8909 0001176 255.3340 297.5519 1.00…'} {'AMSC 1' } {'1 23553U 95019A 24031.53974354 -.00000082 00000+0 000…'} {'2 23553 12.5006 22.2850 0006687 284.1225 270.6389 1.00…'} {'TDRS 7' } {'1 23613U 95035B 24031.85825343 -.00000189 00000+0 000…'} {'2 23613 13.7386 354.2003 0023797 59.4415 110.7547 1.00…'} {'USA 115 (MILSTAR-1 2)'} {'1 23712U 95060A 24032.03861132 -.00000007 00000+0 000…'} {'2 23712 13.7492 10.0014 0003960 289.0079 85.6121 1.00…'} {'INMARSAT 3-F1' } {'1 23839U 96020A 24032.07550895 .00000062 00000+0 000…'} {'2 23839 8.7765 53.9614 0004309 237.6842 291.2846 0.99…'} {'INMARSAT 3-F2' } {'1 24307U 96053A 24031.40790413 -.00000274 00000+0 000…'} {'2 24307 7.8702 62.1741 0003905 268.0940 255.8057 0.99…'} {'INMARSAT 3-F3' } {'1 24674U 96070A 24031.81461483 .00000095 00000+0 000…'} {'2 24674 8.4226 57.3463 0005739 238.7541 321.7469 1.00…'} {'GALAXY 25 (G-25)' } {'1 24812U 97026A 24031.84829262 -.00000139 00000+0 000…'} {'2 24812 5.1893 77.6023 0007434 277.6040 83.6074 0.99…'} {'INTELSAT 5 (IS-5)' } {'1 24916U 97046A 24031.88066507 -.00000051 00000+0 000…'} {'2 24916 8.5034 56.6049 0004979 215.0677 342.0810 1.00…'} {'AMC-3 (GE-3)' } {'1 24936U 97050A 24031.54687941 -.00000248 00000+0 000…'} {'2 24936 6.0034 73.6285 0002986 241.5836 299.9100 1.00…'} {'USA 134' } {'1 25019U 97065A 24031.63732726 -.00000051 00000+0 000…'} {'2 25019 11.7447 27.7459 0004273 298.0796 281.9038 1.00…'} {'INMARSAT 3-F5' } {'1 25153U 98006B 24032.14491002 -.00000277 00000+0 000…'} {'2 25153 7.7324 61.2524 0004849 255.9407 171.8298 1.00…'} {'SKYNET 4E' } {'1 25639U 99009B 24031.70418299 -.00000021 00000+0 000…'} {'2 25639 11.5565 13.8005 0003588 291.2602 77.6416 1.00…'} {'UFO 10 (USA 146)' } {'1 25967U 99063A 24031.84289722 -.00000174 00000+0 000…'} {'2 25967 9.3657 31.2264 0004935 252.4625 127.4942 1.00…'} {'ASIASTAR' } {'1 26107U 00016A 24032.08334100 -.00000320 00000+0 000…'} {'2 26107 7.0800 66.8552 0004429 247.3118 311.6311 1.00…'} {'USA 149 (DSP 20)' } {'1 26356U 00024A 24031.67154948 .00000107 00000+0 000…'} {'2 26356 12.5145 17.6856 0001668 274.2600 274.8451 1.00…'} {'TDRS 8' } {'1 26388U 00034A 24031.74264705 .00000107 00000+0 000…'} {'2 26388 11.3199 38.3135 0005372 246.8091 304.9143 1.00…'} {'INTELSAT 9 (IS-9)' } {'1 26451U 00043A 24022.95757295 -.00000293 00000+0 000…'} {'2 26451 8.4689 56.8767 0003804 236.9187 122.7041 1.00…'} {'USA 153' } {'1 26575U 00065A 24031.87448646 -.00000311 00000+0 000…'} {'2 26575 10.1148 41.9556 0002142 243.9175 294.0054 1.00…'} {'INTELSAT 1R (IS-1R)' } {'1 26608U 00072A 24031.95054432 -.00000126 00000+0 000…'} {'2 26608 5.8999 74.1421 0001560 239.5236 316.2897 1.00…'} {'USA 157 (MILSTAR-2 2)'} {'1 26715U 01009A 24031.66717108 .00000025 00000+0 000…'} {'2 26715 10.6010 24.5309 0003278 277.5276 304.3224 1.00…'} {'INTELSAT 10 (IS-10)' } {'1 26766U 01019A 24031.81069881 -.00000001 00000+0 000…'} {'2 26766 6.9925 67.9853 0003713 235.7835 292.7408 1.00…'} {'ASTRA 2C' } {'1 26853U 01025A 24031.54679238 -.00000246 00000+0 000…'} {'2 26853 6.0254 73.4534 0003008 237.7766 303.3933 1.00…'}

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Dl
Dl 2024년 2월 1일
This line
[~,idx] = unique(tkn(:,1),'stable');
gives me
Index in position 2 exceeds array bounds.
It gives this mistake not always but sometimes
  댓글 수: 1
Stephen23
Stephen23 2024년 2월 1일
"It gives this mistake not always but sometimes"
It will give that error when the regular expression cannot match anything in the file, i.e. the file format differs from what you have explained and shown on this thread. I recommend that you use the expression given here.
Please upload a sample data file which causes this error.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Characters and Strings에 대해 자세히 알아보기

제품


릴리스

R2023b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by