我有一個Fortran代碼的可執行文件,我想從MATLAB運行。在Linux機器上執行使用intel-fortran編譯的程序
我使用以下兩種方法試過,但得到的錯誤:
!/home/atrac/code case172.jcl
error:- ls: cannot access ./id: No such file or directory
ls: cannot access ./id: No such file or directory
!gnome-terminal --command "./home/myhome/code case12.jcl"
error: There was an error creating child process for this terminal
有沒有一種方法,我可以寫一個shell腳本來執行程序,直到執行外部程序,然後暫停Matlab的傳遞控制回Matlab的?
我試圖在Matlab中運行一個遺傳算法,該算法稱之爲外部軟件。 任何想法或幫助,不勝感激。
感謝, 佳日
感謝Lokesh,即使我認爲應該是'!./ home/atrac/code case172.jcl',但那不起作用我得到一個錯誤: /bin/bash:./home/atrac/code:No這樣的文件或目錄 是的我能夠從終端運行這個程序 – user2660994
你能看到什麼是你的Linux的shell? –
另請參閱嘗試運行!ls/home/atrac。這應該列出目錄中的所有文件。這至少會證實目錄是可見的。 –