system(...) yields different results than Terminal application on mac

7 ビュー (過去 30 日間)
Lucas-Raphael Müller
Lucas-Raphael Müller 2017 年 9 月 10 日
回答済み: the cyclist 2017 年 9 月 10 日
Currently I try to trigger latex compiling out of matlab. On windows it works fine with
system('xelatex arbitrarytex.tex')
however on mac it says
/bin/bash: xelatex: command not found
However it works if I write the exact same command in terminal application by hand. Probably environmental variables are not loaded, however there is neither ~/.bashrc nor ~/.bash_profile existing on my system. I figure there must be another file to load before accessing system default variables? Someone familiar with that?

採用された回答

the cyclist
the cyclist 2017 年 9 月 10 日
You need to set your MATLAB PATH environment variable.
See Walter's answer and my comment to this similar question that I asked a while ago.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeWhos についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by