Info
This question is closed. Reopen it to edit or answer.
One function 3 files
3 views (last 30 days)
Show older comments
Could someone please help and explain this to me.
Suppose you work for a battery manufacturer, and you have pulled a sample of batteries out for testing (note that different number of batteries are associated with different tests). Your company has determined that for a battery to be acceptable for sale, it must meet the following specifications:
Voltage: 1.18-1.22
Length (mm): 50.5-51.5
Diameter (mm): 13.5-14.5
You will be writing a function that takes as inputs a file name and lower/upper limits for whatever property you are examining. The function will output statistical data. Write a general function that will work for any set of data! Do NOT write three separate functions.
You should write a program (i.e. function) that:
a. Finds the mean, maximum, minimum, and standard deviation of the quantity being examined (either voltage, diameter, or length).
b. Determines the percentage of items you expect to meet specifications based on your sample.
For testing, use the following three files:
1 Comment
Rik
on 11 Feb 2021
You can find guidelines for posting homework on this forum here. If you have trouble with Matlab basics you may consider doing the Onramp tutorial (which is provided for free by Mathworks).
Answers (0)
This question is closed.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!