MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   [MATLAB基础] 求助:如何读取包含字符和数字的文件 (https://www.labfans.com/bbs/showthread.php?t=12147)

explorerlj 2010-10-12 10:20

求助:如何读取包含字符和数字的文件
 
各位大虾好,我遇到一个问题,希望能得到大家帮组。
该文件共有几千万行,源文件中[COLOR="Red"]红色数字[/COLOR]是我想要读取的,最终想把要读取的数字形成一个矩阵:
1120 1640 25 1526
1120 1640 75 1526
........ ...... ...........
1120 1641 125 1535
1120 1641 125 1535
........ ......................
1121 1640 75 1526
.................................
希望大家给予帮组,谢谢!

源文件格式:
LIGNE[COLOR="red"]1120[/COLOR]
([COLOR="red"]1640[/COLOR])
[COLOR="red"]25 1526
75 1526
125 1535
175 1544
225 1552
275 1579
325 1606
375 1633
425 1664
475 1699
525 1745
575 1803
625 1860[/COLOR]
F6000
([COLOR="red"]1641[/COLOR])
[COLOR="red"]25 1526
75 1526
125 1535
175 1544
225 1552
275 1579
325 1606[/COLOR]
F6000
([COLOR="red"]1642[/COLOR])
[COLOR="red"]425 1664
475 1699
525 1745
575 1803
625 1860[/COLOR]
LIGNE[COLOR="red"]1121[/COLOR]
([COLOR="red"]1640[/COLOR])
[COLOR="red"]125 1535
175 1544
225 1552[/COLOR]
F6000
([COLOR="red"]1641[/COLOR])
[COLOR="red"]575 1803
625 1860[/COLOR]
......................
...................


所有时间均为北京时间。现在的时间是 12:53

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.