论坛的老师:您好!
假设随机变量服从对数正态分布,计算可靠度曲线R(t),我要算的R(t)中分子和分母均含有log(t)
代码如下:
t=1:3e4;
f=(log(15)+12.4750-1.0975*log(t))./(0.9851-0.0983*log(t));
R=normcdf(f,0,1);
plot(t,R)
为什么不能得到一条光滑曲线呢?是我的f表达式中的参数有问题吗?
谢谢老师!

 Réponse acceptée

nagejeh
nagejeh le 16 Nov 2022

0 votes

1. 当(0.9851-0.0983lnt)=0时,f=inf,有问题。
2. 你是认为f是个随机变量,服从标准正态分布?否则不应该这么算

Plus de réponses (0)

Catégories

En savoir plus sur 二维图和三维图 dans Centre d'aide et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!