
How Can I write this this matlab code in R:


options=optimset('TolFun',1e-9,'TolX',1e-9,'MaxIter',1e8,'MaxFunEvals',1e8);
c=c/2;
[alpha, delta, epsilon, nofcup] = ustrs(set_date,mat_date);
y = fminsearch('pbond',.15,options,p,c,nofcup,delta/epsilon);
y = 200*y;



Note 
pbond is a function in Matlab  I already wrote in R


ustrs is a function in Matlab I already convert into r


Thank you

HI

 		 	   		  
	[[alternative HTML version deleted]]

