Matlab question: saving the path -
i working matlab r2011a. want set path @ c:\matlab (say). seems path setting not saved , need reset path every time start matlab. please advise.
if want start matlab in specific path, and have path automatically added search path, modify userpath
setting:
userpath('c:\matlab')
if want start matlab in specific path without having path added search path, have 2 options:
1) create file startup.m
in folder c:\program files\matlab\r2011a\toolbox\local
, write in file cd('c:\matlab')
. way, whenever matlab started, changes path (you can add other commands should executed upon startup).
2) right-click onto matlab icon use start program, , in properties, write c:\matlab
in start in
line. thus, whenever start matlab shortcut (but not otherwise), matlab change path.
Comments
Post a Comment