subject
Engineering, 25.11.2019 22:31 joyelewis58

Write a matlab program that calculates the arithmetic mean, the geometric mean, and the root-mean-square average for a given set of values. your program must use 3 functions to calculate the 3 required means. the output should be formatted as follows:

your name statistical package arithmetic mean = x. geometric mean = x. rms average = x.

test your program on the following values: 1.1, 3.3, 3.00, 2.22, 2.00, 2.72, 4.00, 4.62 and 5.37. your main program calls 3 functions.

the data should be read by the main program from a text file, stored in an array and then passed to the functions.

the results and any other output should be printed by the main program. notice how the output results are aligned. also notice that the results are printed accurate to 5 decimal places.

do not use matlab built-in functions.

ansver
Answers: 1

Another question on Engineering

question
Engineering, 04.07.2019 18:10
Aflywheel accelerates for 5 seconds at 2 rad/s2 from a speed of 20 rpm. determine the total number of revolutions of the flywheel during the period of its acceleration. a.5.65 b.8.43 c. 723 d.6.86
Answers: 2
question
Engineering, 04.07.2019 18:10
The higher the astm grain-size number, the coarser the grain is. a)-true b)-false
Answers: 3
question
Engineering, 04.07.2019 18:10
Draw the engineering stress-strain curve for (a) bcc; (b) fcc metals and mark important points.
Answers: 1
question
Engineering, 04.07.2019 18:10
Journeyman training is usually related (clo2) a)-to specific tasks b)-to cost analysis of maintenance task c)-to control process to ensure quality d)-to installation of machinery
Answers: 2
You know the right answer?
Write a matlab program that calculates the arithmetic mean, the geometric mean, and the root-mean-sq...
Questions
question
Mathematics, 01.09.2020 21:01
Questions on the website: 13722363