Using bash shell inside Matlab -
i'm trying put large set of bash commands matlab script , manage variables (like file paths, parameters etc) there. needed because workflow requires manual intervention @ steps , use step debugger this.
the problem is, don't understand how matlab interfaces bash shell. can't system('source .bash_profile')
define bash variables. can't define them hand , read them either, e.g. system('export var=somepath')
, system('echo $var')
returns nothing.
what correct way of defining variables in bash inside matlab's command window? how can construct workflow of commands use variables defined in .bash_profile?
if need set environment variables, in matlab:
>> setenv('var','somepath') >> system('echo $var')
Comments
Post a Comment