新手求救,大家帮帮忙
:'( 我由于没有什么编程的基础,现在要处理一堆原始数据,并画图,最先的就是不知道如何把数据导入MATLAB中!数据形式是"起始仰角=",0
"结束仰角=",270
"仰角步长=",2
060107000157000.0 -07.6 11.7
060107000159002.0 -05.6 11.7
060107000200004.0 -26.6 11.6
060107000200006.0 -35.8 11.7
060107000201008.0 -41.4 11.7
060107000202010.0 -44.8 11.7
060107000203012.0 -49.8 11.7
060107000204014.0 -50.0 11.7
060107000204016.0 -50.0 11.7
060107000205018.0 -50.0 11.7
060107000206020.0 -50.0 11.7
060107000207022.0 -50.0 11.7
060107000207024.0 -50.0 11.7
060107000208026.0 -50.0 11.7
060107000209028.0 -50.0 11.7
060107000210030.0 -50.0 11.7
060107000211032.0 -50.0 11.7
060107000211034.0 -50.0 11.7
060107000212036.0 -50.0 11.7
060107000213038.0 -50.0 11.7
060107000214040.0 -50.0 11.7
060107000214042.0 -50.0 11.7
060107000215044.0 -50.0 11.7
060107000216046.0 -50.0 11.7
060107000217048.0 -50.0 11.7
060107000218050.0 -50.0 11.7
060107000218052.0 -50.0 11.7
060107000219054.0 -50.0 11.7
060107000220056.0 -50.0 11.7
060107000221058.0 -50.0 11.7
060107000221060.0 -50.0 11.8
060107000222062.0 -50.0 11.8
060107000223064.0 -50.0 11.8
060107000224066.0 -50.0 11.8
060107000225068.0 -50.0 11.8
060107000225070.0 -50.0 11.8
060107000226072.0 -50.0 11.8
060107000227074.0 -50.0 11.8
060107000228076.0 -50.0 11.8
060107000228078.0 -50.0 11.8
060107000229080.0 -50.0 11.8
060107000230082.0 -50.0 11.8
060107000231084.0 -50.0 11.8
060107000231086.0 -50.0 11.8
060107000232088.0 -50.0 11.8
060107000233090.0 -50.0 11.8
060107000234092.0 -50.0 11.8
060107000235094.0 -50.0 11.8
060107000235096.0 -50.0 11.8
060107000236098.0 -50.0 11.8
060107000237100.0 -50.0 11.8
060107000238102.0 -50.0 11.8
060107000238104.0 -50.0 11.8
060107000239106.0 -50.0 11.8
060107000240108.0 -50.0 11.8
060107000241110.0 -50.0 11.8
060107000242112.0 -50.0 11.8
060107000242114.0 -50.0 11.8
060107000243116.0 -50.0 11.8
060107000244118.0 -50.0 11.8
060107000245120.0 -50.0 11.8
060107000245122.0 -50.0 11.8
060107000246124.0 -50.0 11.9
060107000247126.0 -50.0 11.9
060107000248128.0 -50.0 11.9
060107000249130.0 -50.0 11.9
060107000249132.0 -50.0 11.9
060107000250134.0 -50.0 11.9
060107000251136.0 -50.0 11.9
060107000252138.0 -50.0 11.9
060107000252140.0 -50.0 11.9
060107000253142.0 -50.0 11.9
060107000254144.0 -50.0 11.9
060107000255146.0 -50.0 11.9
060107000256148.0 -50.0 11.9
060107000256150.0 -50.0 11.9
060107000257152.0 -50.0 11.9
060107000258154.0 -50.0 11.9
060107000259156.0 -50.0 11.9
060107000259158.0 -50.0 11.9
060107000300160.0 -50.0 11.9
060107000301162.0 -50.0 11.9
060107000302164.0 -50.0 11.9
060107000302166.0 -50.0 11.9
060107000303168.0 -50.0 11.9
060107000304170.0 -50.0 11.9
060107000305172.0 -45.7 11.9
060107000306174.0 -41.2 11.9
060107000306176.0 -34.5 12.0
060107000307178.0 -14.2 11.9
060107000308180.0 -06.9 12.0
060107000309182.0 -08.6 12.0
060107000309184.0 -09.1 12.0
060107000310186.0 -08.6 12.0
060107000311188.0 -10.1 12.0
060107000312190.0 -11.8 12.0
060107000313192.0 -10.0 12.0
060107000313194.0 -11.8 12.0
060107000314196.0 -12.1 12.0
060107000315198.0 -11.7 12.0
060107000316200.0 -10.6 12.0
060107000316202.0 -10.9 12.0
060107000317204.0 -10.6 12.0
060107000318206.0 -09.4 12.0
060107000319208.0 -10.3 12.0
060107000320210.0 -10.7 12.0
060107000320212.0 -10.7 12.0
060107000321214.0 -10.2 12.0
060107000322216.0 -10.8 12.0
060107000323218.0 -09.0 12.0
060107000323220.0 -09.4 12.0
060107000324222.0 -09.6 12.0
060107000325224.0 -10.4 12.0
060107000326226.0 -09.5 12.0
060107000326228.0 -11.1 12.0
060107000327230.0 -10.7 12.0
060107000328232.0 -10.4 12.0
060107000329234.0 -10.4 12.1
060107000330236.0 -10.7 12.1
060107000330238.0 -10.2 12.1
060107000331240.0 -10.5 12.1
060107000332242.0 -10.2 12.1
060107000333244.0 -09.4 12.1
060107000333246.0 -10.2 12.1
060107000334248.0 -09.3 12.1
060107000335250.0 -09.4 12.1
060107000336252.0 -09.9 12.1
060107000337254.0 -09.4 12.1
060107000337256.0 -08.6 12.1
060107000338258.0 -09.8 12.1
060107000339260.0 -08.4 12.1
060107000340262.0 -09.6 12.1
060107000340264.0 -09.1 12.1
060107000341266.0 -09.4 12.1
060107000342268.0 -08.4 12.1
060107000343270.0 -08.9 12.1
060107000343270.0 -08.9 12.1
060107000344268.0 -08.6 12.1
060107000345266.0 -09.2 12.1
060107000346264.0 -09.4 12.1
060107000346262.0 -09.5 12.1
060107000347260.0 -08.9 12.1
060107000348258.0 -09.3 12.1
060107000349256.0 -09.9 12.1
060107000350254.0 -09.3 12.1
060107000350252.0 -10.4 12.1
060107000351250.0 -10.2 12.1
060107000352248.0 -10.5 12.1
060107000353246.0 -10.2 12.1
060107000353244.0 -10.4 12.1
060107000354242.0 -11.4 12.1
060107000355240.0 -10.9 12.1
060107000356238.0 -11.7 12.2
060107000356236.0 -11.3 12.2
060107000357234.0 -11.4 12.2
060107000358232.0 -10.9 12.2
060107000359230.0 -10.9 12.2
060107000400228.0 -11.4 12.2
060107000400226.0 -10.1 12.2
060107000401224.0 -10.3 12.2
060107000402222.0 -09.1 12.2
060107000403220.0 -08.6 12.2
060107000403218.0 -08.1 12.2
060107000404216.0 -10.4 12.2
060107000405214.0 -09.6 12.2
060107000406212.0 -10.1 12.2
060107000407210.0 -10.6 12.2
060107000407208.0 -10.4 12.2
060107000408206.0 -09.3 12.2
060107000409204.0 -09.3 12.2
060107000410202.0 -10.6 12.2
060107000410200.0 -10.1 12.2
060107000411198.0 -10.4 12.2
060107000412196.0 -11.5 12.2
060107000413194.0 -11.8 12.2
060107000414192.0 -09.5 12.2
060107000414190.0 -11.4 12.2
060107000415188.0 -11.5 12.2
060107000416186.0 -09.8 12.2
060107000417184.0 -08.8 12.2
060107000417182.0 -08.8 12.2
060107000418180.0 -06.9 12.2
060107000419178.0 -09.5 12.2
060107000420176.0 -28.2 12.2
060107000421174.0 -38.5 12.2
060107000421172.0 -43.8 12.2
060107000422170.0 -47.8 12.3
060107000423168.0 -50.0 12.3
060107000424166.0 -50.0 12.3
060107000424164.0 -50.0 12.3
060107000425162.0 -50.0 12.3
060107000426160.0 -50.0 12.3
060107000427158.0 -50.0 12.3
060107000427156.0 -50.0 12.3
060107000428154.0 -50.0 12.3
060107000429152.0 -50.0 12.3
060107000430150.0 -50.0 12.3
060107000431148.0 -50.0 12.3
060107000431146.0 -50.0 12.3
060107000432144.0 -50.0 12.3
060107000433142.0 -50.0 12.3
060107000434140.0 -50.0 12.3
060107000434138.0 -50.0 12.3
060107000435136.0 -50.0 12.3
060107000436134.0 -50.0 12.3
060107000437132.0 -50.0 12.3
060107000438130.0 -50.0 12.3
060107000438128.0 -50.0 12.3
060107000439126.0 -50.0 12.3
060107000440124.0 -50.0 12.3
060107000441122.0 -50.0 12.3
060107000441120.0 -50.0 12.3
060107000442118.0 -50.0 12.3
060107000443116.0 -50.0 12.3
060107000444114.0 -50.0 12.3
060107000445112.0 -50.0 12.3
060107000445110.0 -50.0 12.4
060107000446108.0 -50.0 12.4
060107000447106.0 -50.0 12.4
060107000448104.0 -50.0 12.4
060107000448102.0 -50.0 12.4
060107000449100.0 -50.0 12.4
060107000450098.0 -50.0 12.4
060107000451096.0 -50.0 12.4
060107000452094.0 -50.0 12.4
060107000452092.0 -50.0 12.4
060107000453090.0 -50.0 12.4
060107000454088.0 -50.0 12.4
060107000455086.0 -50.0 12.4
060107000455084.0 -50.0 12.4
060107000456082.0 -50.0 12.4
060107000457080.0 -50.0 12.4
060107000458078.0 -50.0 12.4
060107000459076.0 -50.0 12.4
060107000459074.0 -50.0 12.4
060107000500072.0 -50.0 12.4
060107000501070.0 -50.0 12.4
060107000502068.0 -50.0 12.4
060107000502066.0 -50.0 12.4
060107000503064.0 -50.0 12.4
060107000504062.0 -50.0 12.4
060107000505060.0 -50.0 12.4
060107000505058.0 -50.0 12.4
060107000506056.0 -50.0 12.4
060107000507054.0 -50.0 12.5
060107000508052.0 -50.0 12.5
060107000509050.0 -50.0 12.5
060107000509048.0 -50.0 12.5
060107000510046.0 -50.0 12.5
060107000511044.0 -50.0 12.5
060107000512042.0 -50.0 12.5
060107000512040.0 -50.0 12.5
060107000513038.0 -50.0 12.5
060107000514036.0 -50.0 12.5
060107000515034.0 -50.0 12.5
060107000516032.0 -50.0 12.5
060107000516030.0 -50.0 12.5
060107000517028.0 -50.0 12.5
060107000518026.0 -50.0 12.5
060107000519024.0 -50.0 12.5
060107000519022.0 -50.0 12.5
060107000520020.0 -50.0 12.5
060107000521018.0 -50.0 12.5
060107000522016.0 -50.0 12.5
060107000523014.0 -50.0 12.5
060107000523012.0 -50.0 12.5
060107000524010.0 -45.3 12.5
060107000525008.0 -42.0 12.5
060107000526006.0 -36.0 12.5
060107000526004.0 -27.3 12.5
060107000527002.0 -05.8 12.5
060107000528000.0 -07.2 12.5
060107000528000.0 -07.4 12.5
060107000529002.0 -05.6 12.5
060107000530004.0 -26.4 12.5
060107000531006.0 -35.7 12.6
060107000532008.0 -41.6 12.6
060107000532010.0 -44.8 12.6
060107000533012.0 -49.8 12.6
060107000534014.0 -50.0 12.6
060107000535016.0 -50.0 12.6
060107000535018.0 -50.0 12.6
060107000536020.0 -50.0 12.6
060107000537022.0 -50.0 12.6
060107000538024.0 -50.0 12.6
060107000538026.0 -50.0 12.6
060107000539028.0 -50.0 12.6
。。。。。。。。。。
首先前面三行文字说明不要,中间还有空行,而且数据是从0到270,再由270到0,相反了,这样的文件有很多,我要通过
读入那么多的文件,并且根据前三列的数据画图,请教大家,我这个程序该怎么做啊,我都急死了。。。。。一点头绪都没有!!!!!! 原帖由 pljxiaocao 于 2007-4-13 20:32 发表
:'( 我由于没有什么编程的基础,现在要处理一堆原始数据,并画图,最先的就是不知道如何把数据导入MATLAB中!
数据形式是"起始仰角=",0
"结束仰角=",270
"仰角步长=",2
0 ...
help textread
更多的请搜索本版关于文件读取的帖子 http://forum.vibunion.com/forum/viewthread.php?tid=8937
页:
[1]