如何在matlab中读取没有分隔符的格式化文件?

时间:2013-07-14 20:15:50

标签: matlab sqlite

我有一个像这样的行的文件(前两行,每行有25列):

  1921.300       .      .    <  0.030     .         .     .       .     .     550        1.6   1 Mrr1922  Jm   5  
  1973.220    158.     3.       0.240    0.002      .     .      1.5   0.5    620        5.1   1 Lab1974  S    4   

和描述(前4列为例):

term       columns   format   description   
date       008-017   f10.5    Observation date, in years.    
tflag      019-019   a1       Flag for theta (position angle) measure. Flags 
                          include:
                          : = uncertain/estimated (old code U)
                          L = originally published as nf, sp, etc. 
                              (old code L)
                          Q = quadrant flipped 180deg from published value 
                              (old code Q)
                          V = measure is vector separation along this angle 
                              vector (previously used only in 
                              interferometric catalog)  
theta      020-026   f7.3     position angle, in degrees  
terr       028-033   f6.3     published formal theta error, in degrees  

etc.

-----------------------------------------------------------------------------

如何在Matlab中阅读此文件?我没有分隔符(只有位置和格式)。基本的想法是在我的SQLite数据库中读取这个文件但是(如果我正确的话)SQLite只适用于分隔符。

0 个答案:

没有答案