f******e 发帖数: 921 | 1 I have a perl code, suppose the code file is "H.bg", I will run the code
like this way: ../Perl2/BNG2.pl H.bg, then it will output a data file
called: H.data.
Since I want to run it 10 times automatically and take one row of data
out. So, I want to use Matlab to implement it,
for i=1:10
../Perl2/BNG2.pl H.bg
fid=fopen('H.data','r');
a = fscanf (fid, '%f');
A(i)=a(size(a)-4:size(a));
clear a;
end
when I run, it said wrong in 2nd row. Could someone help me? I am not good
at Matlab.Thanks | z****e 发帖数: 2024 | 2 in matlab:
unix('your command'); | f******e 发帖数: 921 | |
|