Functions | |
if (nargin==0) savefile | |
if (exist(savefile)==2)[fid | |
if(fid< 0) error("savepath | strrep (path_to_save_begin(1:n),"'","''")) endif if(!isempty(path_to_save_end)) n |
fprintf (fid," addpath ('%s', '-end');\n", strrep(path_to_save_end(1:n),"'","''")) endif fprintf(fid | |
Variables | |
function | varargout |
beginstring = "## Begin savepath auto-created section, do not edit" | |
endstring = "## End savepath auto-created section" | |
endif | startline = 0 |
endline = 0 | |
filelines = {} | |
msg = fopen (savefile, "rt") | |
if(fid< 0) error("savepath | n |
s endstring for | i |
endfor unwind_protect_cleanup | closeread = fclose (fid) |
fprintf | ( | fid | , | |
" addpath ('%s', '-end');\n" | , | |||
strrep(path_to_save_end(1:n),"'","''") | ||||
) |
if | ( | exist(savefile) | = = 2 |
) |
if | ( | nargin | = =0 |
) |
if (fid < 0) error ("savepath strrep | ( | path_to_save_begin(1:n) | , | |
"'" | , | |||
"''" | ||||
) |
beginstring = "## Begin savepath auto-created section, do not edit" |
endline = 0 |
endstring = "## End savepath auto-created section" |
filelines = {} |
msg = fopen (savefile, "rt") |
s n |