In: Mechanical Engineering
Data from service records show that the time to repair a certain machine is normally distributed with a mean of 65 min and a standard deviation of 5 min. Estimate how often it will take more than 75 min to repair a machine.
Program plan:
• To write a matlab code to find the percent of times the service time is more than 75 min to service the machine.
Program:
%**********************************************************
%A matlab code is written to estimate how often it will
%take more than 75 min to repair the machine.
%**********************************************************
%Declaration of mean
mu=65;
%Declaration of standard deviation
sigma=5;
%Computes the value
z=(75-mu)/sigma;
%Computes the value of percent of time taken for the task to be completed
%after 75 min
p=100*((1-erf(z/sqrt(2)))/2);
%Displays text
disp(\'Percent\');
%Displays value
disp(p);
Output:
>> Untitled
Percent
2.2750
Program plan:
• To write a matlab code to find the percent of times the service time is more than 75 min to service the machine.