Very easy dear. Suppose you want to set alpha as 0.5 and dfmax as 9, other things to be kept default. Then do as follows,
opts=struct; opts.alpha=0.5; opts.dfmax=9; options=glmnetSet(opts);
You can now use options in other functions like,
glmnet(x,y,'gaussian',options).
