how to read the formatted data from the file?

2008-07-14 Thread vikingy
Hi all, There is a file created likes this: open File ">file.txt" or die $!; foreach .. <..> { printf File "%5d %11.2f\n", $data1,data2; } close File; and my question is, how to read these data follow the same format as "%5d %11.2f' from this file again? thanks in advance

how to implement this with perl

2008-06-26 Thread vikingy
Hi all, I have two files,one is label file,another is thickness file, they are one to one correspondence, for example: the label file is : 2 2 3 2 1 3 4 5 2 5 1 4 .. the thickness file is:0.3 0.8 0.2 0.1 2.4 0.9 3

how to call a matlab program in the perl script

2008-06-11 Thread vikingy
Hi all, I want to call a matlab program(*.m) in the perl sript, how to realize this function? Thanks in advance~ 2008-06-11 The Key Lab of Complex Systems and Intelligence Science, Institute of Automation, Chinese Academy of Sciences.