What is the matlab code for this R code?
1 次查看(过去 30 天)
显示 更早的评论
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!
0 个评论
采纳的回答
Ahmet Cecen
2016-5-10
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
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!