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, 03.07.2019 19:30
When using the ohmmeter function of a digital multimeter, the leads are placed in what position relative to the component being tested? a. parallel b. control c. series d. line
Answers: 3
question
Engineering, 04.07.2019 16:10
The force on a cutting tool are 2600n vertically downward and 2100 horizontal. determine the resultant force acting on the tool and the angle at which it acts.
Answers: 1
question
Engineering, 04.07.2019 18:10
Thermal stresses are developed in a metal when its a) initial temperature is changed b) final temperature is changed c) density is changed d) thermal deformation is prevented e) expansion is prevented f) contraction is prevented
Answers: 2
question
Engineering, 04.07.2019 18:10
An air compression refrigeration system is to have an air pressure of 100 psia in the brine tank and an allowable air temperature increase of 60°f for standard vapor compression cycle temperatures of 77 f entering the expansion cylinder and 14 f entering the compression cylinder, calculate the coefficient of performance a. 2.5 b 3.3 c. 4.0 d. 5.0
Answers: 3
You know the right answer?
Write a matlab program that calculates the arithmetic mean, the geometric mean, and the root-mean-sq...
Questions
question
English, 26.07.2019 01:30
Questions on the website: 13722361