Advertisement
Sri27119

normal distribution

May 19th, 2024
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.38 KB | None | 0 0
  1. x1 = [30 35]; % pollutant released
  2. x2 = [25 30];
  3. x3 = [35 40];
  4. x4 = [20 25];
  5. x5 = [40 45];
  6.  
  7. mu = 33; % mean
  8. sigma = 3; % standard deviation
  9.  
  10. Px1 = normspec(x1,mu,sigma); % probability of shaded area
  11. Px2 = normspec(x2,mu,sigma);
  12. Px3 = normspec(x3,mu,sigma);
  13. Px4 = normspec(x4,mu,sigma);
  14. Px5 = normspec(x5,mu,sigma);
  15.  
  16. Profit= 100*Px1 + 50*(Px2+Px3) - 60*(Px4+Px5); % Answer
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement