compiled code doesn't find perl script
1 回表示 (過去 30 日間)
古いコメントを表示
up to now we are using matlab scripts for postprocessing of circuit simulations. I am just starting to see if it is possible to compile our scripts into matlab. The issue I am facing is that the matlab scripts are using some functions written in matlab which are using system call on perl scripts. After compiling the matlab script, I get an error message that the perl script is not found:
/home/yannick/.mcrCache7.11/avenue1/home/yannick/bin/param2m.pl: Command not found.
??? Error using ==> set_paramfile at 79 ERROR PERL
Error in ==> process_measures_function at 5
how can I define the path to the bin directory in such a way that the compiled code knows where to find the perl script?
Thanks a lot for your help
Regards
Yannick
0 件のコメント
採用された回答
Friedrich
2013 年 7 月 9 日
編集済み: Friedrich
2013 年 7 月 9 日
Hi,
either use fullfile and ctfroot to get there
abs_pth = fullfile(ctfroot,'home','yannick','bin','myfile.pl')
Or use which
abs_pth = which('myfile.pl')
Maybe consider putting an isdeployed statement around it in order to switch between running in MATLAB and running deployed.
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で MATLAB Compiler についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!