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

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -