MATLAB PROGRAM! PLEASE HELP IS URGENT! Mean Time Between Failure Calculations Th
ID: 2088813 • Letter: M
Question
MATLAB PROGRAM!
PLEASE HELP IS URGENT!
Mean Time Between Failure Calculations The reliability of a piece of electronic equipment is usually measured in terms of mean time between failures (MTBF), where MTBF is the average time that the piece of equipment can operate before a failure occurs in it. For large systems containing many pieces of electronic equipment, it is customary to determine the MTBFs of each component, and to calculate the overall MTBF of the system from the failure rates of the individual components. If the system is structured like the one shown in Figure 4-16, every component must work in order for the whole system to work, and the overall system MTBF can be calculated as (4-18) MTBF MTBF2 MTBFn Write a program that reads in the number of series components in a system and the MTBFs for each component, and then calculates the overall MTBF for the system. To test your program, determine the MTBF for a radar system consisting of an antenna subsystem with an MTBF of 2000 hours, a transmitter with an MTBF of 800 hours, a receiver with an MTBF of 3000 hours, and a computer with an MTBF of 5000 hours. FIGURE 4-16 An electronic system containing three subsystems with known MTBFs. MTBF 1 MTBF 2 MTBF 3 MTBFExplanation / Answer
%%%%%%%%%%%%Code Starts Here%%%%%%%%%%%%
prompt = 'enter number of components: ' ;
no_of_components = input(prompt) ;
MTBF_vector = zeros(no_of_components,1) ;
for i = 1:no_of_components
prompt = 'enter MTBF of components one by one: ' ;
MTBF = input(prompt) ;
MTBF_vector(i,1) = 1/MTBF ;
end
Total_MTBF = 1/sum(MTBF_vector) ;
display(Total_MTBF) ;
%%%%%%%%%%%%%%End%%%%%%%%%%%%
Steps:
1. First ask the user for total number of components by using "input()" command and store it in "no_of_components" variable.
2. Create a vector "MTBF_vector" of dimensions " no_of_components x 1" and initialise the array with zero value for each element.
3. Execute a for loop for the "no_of_components" times.
4. Ask the user for indivial MTBF values of components using "input()" command and store the value in "MTBF" variable.
5. Substitue the inverse value of "MTBF" to elements of "MTBF_vector".
6. end the loop and calculate "Total_MTBF" by dividing 1 with sum of element values of "MTBD_vector".
7. Use "sum()" command to calculate the sum of element values of a vector
8. Display the result by using "display()" command.
This is the complete solution of your problem. Please let me know if you have any further doubts.
Thank You
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.