MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   [MATLAB基础] Matlab按Fortran数据写出格式请教 (https://www.labfans.com/bbs/showthread.php?t=20889)

geoyang 2016-02-17 07:54

Matlab按Fortran数据写出格式请教
 
各位大侠,小弟刚接触Fortran,对数据格式写出格式不太懂,想请教一下我咋用MATLAB将这个数据按6F12.4的格式写出啊?
我有列数据如下:
4565
44566
44567
44568
44565
44566
4565
44563
99999
44561
44563
44564
...
[COLOR="Red"]想通过Matlab读完后按6F12.4这个格式写出[/COLOR]
4565.000 44566.000 44567.000 44568.000 44565.000 44566.000
4565.000 44563.000 99999.000 44561.000 44563.000 44564.000

.....
即每行6个数据,每个数据占12个characters,并且带4个decimal places

请教各位大侠,这个Matlab程序该咋写呢?非常感谢


所有时间均为北京时间。现在的时间是 07:05

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