Skip to main content

Thread: Launching Matlab from Bash Script


i'm working on writing bash script call matlab functions. i've been using following command this:

matlab -nojvm -r 'whatevercommand'

that's worked pretty well, i'm running problems when want call matlab, change directories, @ least when directory contains bash variables. example:

foldernum=50001
mypath=/home/work/$foldernum
matlab -nojvm -r 'cd $mypath'

above code won't perform way i'd to. matlab go /home/work, not go /home/work/50001/. doesn't seem recognize $foldernum is, though when echo $mypath, /home/work/50001.

i'd appreciate help, i'm getting bit frustrated problem.

thanks.



Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [gnome] Launching Matlab from Bash Script


Ubuntu

Comments

Popular posts from this blog

How to set the order of FAQs instead of alphabetical

Thread: Get UK Keyboard working

how do I change the e-mail address for my merchant account