Write a matlab program, MATLAB Programming

Assignment Help:

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.xxxxx
geometric mean = x.xxxxx
RMS average = x.xxxxx

Background and Discussions:

2217_Write a MATLAB program.png

N number of values

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.


Related Discussions:- Write a matlab program

LU facteriziation, 1;write the matlab of LU decomposion that can do any n*n...

1;write the matlab of LU decomposion that can do any n*n matrix by considering scaling and pivoting?

Develop matlab monte carlo queuing simulator, Answers should be submitted i...

Answers should be submitted in an MS Word document. Simulations should accompany answers in a separate MATLAB file. 1)  Queuing Simulator: Consider a communications router that

Filter design, IIR filter using Bilinear trasformation

IIR filter using Bilinear trasformation

Quiz2, 2)''dbcont'' command for debugging is used to Select one: a. Cont...

2)''dbcont'' command for debugging is used to Select one: a. Continue normal code execution from the debug prompt. b. List all breakpoints. c. Execute (step) one or more lines

Passing multiple arguments, Passing Multiple Arguments: In many situai...

Passing Multiple Arguments: In many situaion it is essential to pass more than one argument to the function. For illustration, the volume of a cone is given by here r

Median, what are the steps we need to write in the script to get themedian ...

what are the steps we need to write in the script to get themedian for X values

Operators, Operators: There are in general two types of operators: una...

Operators: There are in general two types of operators: unary operators that operate on a single value or operand; and binary operators, that operate on two values or operands

How to open simpower, How to Open Simpower: 1. Open MATLAB 2. ...

How to Open Simpower: 1. Open MATLAB 2. In the "Command Window" write ' simulink ' and press Enter or click on the Simulink icon. 3. Simulink Library Browser w

To write a program to make a marksheet in matlab, how can write a program t...

how can write a program to make a marksheet of 6 subjects?

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd