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

Other questions on the subject: Engineering

image
Engineering, 03.07.2019 14:10, bryneosburn
Line joining liquid phase with liquid and solid phase mixture is known as: a) liquidus b) solidus c) tie line d) none of the mentioned
Answers: 2
image
Engineering, 04.07.2019 18:10, sarahgrindstaff123
Afluid flows with a velocity field given by v=(x/t)i.. determine the local and convective accelerations when x=3 and t=1.
Answers: 2
image
Engineering, 04.07.2019 18:10, chadatkin
Which of the following ziegler nichols tuning methods the response of the controller to a step input should exhibit an s-shaped curve? a)-open loop mode b)-closed loop mode c)-both modes (open & closed) d)-none of the modes (open & closed)
Answers: 3
image
Engineering, 04.07.2019 18:20, rocio5649
Amixture of slurry and mud is to be pumped through a horizontal pipe of diameter 500 mm. the fluid behaves as a bingham plastic with a yield stress of 30 pa and viscosity 0.04 pa. s. describe the effects of the shear stress through a transverse section of the pipe by plotting the variation in shear stress and velocity profile: (i) just before the slurry starts to move (ii) as the slurry flows when the pressure gradient is double that in part (i)
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 in other subjects:

Konu
History, 17.12.2021 03:50