muropakettien paino normaalijakautunut parametrein sigma 0,5kg ja myy 15 g, kuinka monta prosenttia paketeista painolta välillä 490g ja 520g in matlab

main.m
mu = 15/1000;  % kg
sigma = 0.5;  % kg

lower = 490/1000;  % kg
upper = 520/1000;  % kg

probability = normcdf(upper, mu, sigma) - normcdf(lower, mu, sigma);
percentage = probability * 100;
190 chars
9 lines

This code calculates the percentage of packages with weights between 490g and 520g in a normal distribution of package weights with a mean of 15g and a standard deviation of 0.5kg using MATLAB.

related categories

gistlibby LogSnag