ubuntu - Execution of bash script differs when runned from Matlab and Terminal -


i have bash script , want execute matlab 2014b in ubuntu 14.04. when launch terminal (that start os) ok. try launch matlab this

!./script.sh 

it executes cannot open image files have loaded. more if launch terminal window matlab

!./gnome-terminal 

and use launch script got same 'file not found' problem. text files accessed no problem. path images global. load images opencv library used. guess reason opencv works different matlab, don't know do.

i spend lot of time figure out problem, still cannot resolve it. appreciate advise or help.

ld_library_path of matlab shell differs 1 of teminal shell. following command in matlab:

setenv('ld_library_path', <content of ld_library_path terminal>) 

solves problem. content of ld_library_path terminal printed

echo $ld_library_path 

Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

python - build a suggestions list using fuzzywuzzy -