function main_foo(x,y) a=x+y; c=sec_foo(a,x); matFilename = sprintf('/temp_dd/igrida-fs1/mylogin/results.mat'); save(matFilename,'a','b','c');