MATLAB: What is the matlab code for this R code

do it for mer matlab if else

Hey all; Below is a code I wrote in R and I want to write it in MATLAB. Any one can help?
if (DD>0) {
IC1= (-B-sqrt(DD))/(2*A)
IC2= (-B+sqrt(DD))/(2*A)
if (A>0) {
rej_fi=rej_fi+(Theil0>IC2 | Theil0<IC1)/nrepet
}
if (A<0) {
rej_fi=rej_fi+(Theil0>IC2 & Theil0<IC1)/nrepet
}
}
Thank You in Advance!

Best Answer

if DD>0
IC1= (-B-sqrt(DD))/(2*A)
IC2= (-B+sqrt(DD))/(2*A)
if A>0
rej_fi=rej_fi+(Theil0>IC2 || Theil0<IC1)/nrepet
end
if A<0
rej_fi=rej_fi+(Theil0>IC2 && Theil0<IC1)/nrepet
end
end