virtasignaali on tavallisessa ajotilanteessa normaalijakautunut parametrein keskiarvo 19ma ja keskihajonta 0,6ma, millä todennäiköisyydellä signaali on välillä 18,2-19,3ma? in matlab

main.m
mu = 19; 
sigma = 0.6; 
x1 = 18.2; 
x2 = 19.3;

% Calculate the probability using the cumulative distribution function (CDF) of a normal distribution
probability = normcdf(x2, mu, sigma) - normcdf(x1, mu, sigma);

probability
226 chars
10 lines

This MATLAB code calculates the probability that a normally distributed signal with a mean of 19mA and a standard deviation of 0.6mA falls within the range of 18.2mA to 19.3mA. The normcdf function is used to calculate this probability.

gistlibby LogSnag