I need to read the following data from a text file in MATLAB. This is just a sample, the actual matrix contains data from 1218 stations (USH denotes for US and the number adjacent to that is station ID), each column being the monthly value. Column number 2 values are flags, which I don't want in final data form. How I should proceed?
USH00011084 1890 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 170 2 -9999
USH00011084 1891 550 2 561 2 575 2 165 2 275 2 670 2 425 2 172 2 200 2 0 2 930 2 525 2 5048
USH00011084 1892 1245 2 440 2 256 2 160 2 380 2 780 2 1226 2 1355 2 300 2 100 2 165 2 -9999 -9999
USH00011084 1893 535 2 608 2 465 2 380 2 730 2 345 2 425 2 645 2 345 2 635 2 487 2 487 2 6087
USH00011084 1894 240 2 1649 2 788 2 225 2 465 2 265 2 -9999 -9999 -9999 30 2 -9999 75 2 -9999
USH00011084 1895 -9999 150 2 400 2 400 2 400 2 400 2 300 2 -9999 -9999 200 2 -9999 300 2 -9999
USH00011084 1896 440 2 1340 2 590 2 -9999 320 2 1100 2 935 2 185 2 140 2 500 2 340 2 225 2 -9999
USH00011084 1897 245 2 1230 2 475 2 435 2 50 2 25 4 735 2 980 2 0 2 0 2 -9999 -9999 -9999
USH00011084 1900 -9999 -9999 731 2 704 2 225 2 1296 2 783 2 391 2 611 2 648 2 192 2 607 2 -9999
USH00011084 1926 -9999 553 1031 356 503 678 846a 1161 1369 348 324 354 -9999
USH00011084 1927 99 920 501 89 225 731 444 703 437 316 560 937 5963
USH00011084 1928 111a 804 730 1409 351 779 535 607 -9999 -9999 -9999 -9999 -9999