What is the matlab code for this R code?

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!

 Akzeptierte Antwort

Ahmet Cecen
Ahmet Cecen am 10 Mai 2016

0 Stimmen

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

Weitere Antworten (0)

Kategorien

Mehr zu Startup and Shutdown finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 10 Mai 2016

Kommentiert:

am 10 Mai 2016

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by