matlab调用perl。 哪位大神帮忙解释一下这个含义呢
ifrun_perlok=system(['perlcreate_acdc_2015_04_17.pl--iinput_AD_neutral_4x4_extended.i...
if run_perl
ok = system(['perl create_acdc_2015_04_17.pl --i input_AD_neutral_4x4_extended.inp --e G278K_AD_extended.txt --no_nonmonomer_evaps --wl diffusion --flowtube_radius 2.5 --flowtube_pressure 101325']);
% Input:
% --i input.txt use the clusters specified in input.txt
% --e energies.txt use Gibbs free energies from file energies.txt
% --no_nonmonomer_evaps clusters can't break into two smaller clusters - only molecules can evaporate
% --wl diffusion use diffusion wall losses
% --flowtube_radius r r = flow tube radius in cm
% --flowtube_pressure p p = pressure in the flow tube in Pa
if ok~=0
error 'Error: running the perl script failed!'
end
rehash; % This makes Matlab understand that there are new files in the current folder
end
我那个matlab在D盘 路径改成这样之后 还是有错误
怎么办( ⊙ o ⊙ )! 展开
ok = system(['perl create_acdc_2015_04_17.pl --i input_AD_neutral_4x4_extended.inp --e G278K_AD_extended.txt --no_nonmonomer_evaps --wl diffusion --flowtube_radius 2.5 --flowtube_pressure 101325']);
% Input:
% --i input.txt use the clusters specified in input.txt
% --e energies.txt use Gibbs free energies from file energies.txt
% --no_nonmonomer_evaps clusters can't break into two smaller clusters - only molecules can evaporate
% --wl diffusion use diffusion wall losses
% --flowtube_radius r r = flow tube radius in cm
% --flowtube_pressure p p = pressure in the flow tube in Pa
if ok~=0
error 'Error: running the perl script failed!'
end
rehash; % This makes Matlab understand that there are new files in the current folder
end
我那个matlab在D盘 路径改成这样之后 还是有错误
怎么办( ⊙ o ⊙ )! 展开
1个回答
展开全部
就是直接执行create_acdc_2015_04_17.pl这个脚本啊,后面的是这个脚本的参数注释不是说明了他们的含义,执行完了调用下rehash
更多追问追答
追问
能给我你的QQ吗?我想具体的咨询你一下。
追答
ou, 你看下有没有装perl 那个exe叫perl.exe一般matlab文件夹下面有的。找到路径,
system(['perl create_acdc_2015_04_17.pl
-->改为比如
system(['C:\\perl\bin\\perl create_acdc_2015_04_17.pl
前面是那个EXE文件的全路径
当然你如果会配置环境变量,配置下不用改参数也可以
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询