Write a matlab program that calculates the arithmetic mean, MATLAB Programming

Assignment Help:

Write a MATLAB program that calculates the arithmetic mean, and the root-mean-square average for a given set of values.

The output should be formatted as follows:

Your name

Statistical Package

arithmetic mean =     x.xxxxx

RMS average =         x.xxxxx

Background and Discussions:

Arithmetic mean = 2215_Write a MATLAB program that calculates the arithmetic mean.png

Root-mean-square average =  2097_Write a MATLAB program that calculates the arithmetic mean1.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, and 4.72.

The data should be read by the program from a text file, and stored in an array.

You may want to find the answer by hand calculations and compare them with results from your program.


Related Discussions:- Write a matlab program that calculates the arithmetic mean

Introduction to file input/output , Introduction to File Input/output (LOAD...

Introduction to File Input/output (LOAD and SAVE): In most cases, the input to a script will come from a data file which has been generated by the other source. It is also use

Program to find the minimum total cost for the fence, A fence enclosure con...

A fence enclosure consists of a rectangle of length L and width 2 R , and a semicircle of radius R , as shown in Figure 1. The enclosure is to be built to have an area of 1600 m

Solution by using pdepe function, Solution by using pdepe function fu...

Solution by using pdepe function functionpdex1 m = 0; x = linspace(0,1,100); t = linspace(0,0.2,10);   sol = pdepe(m,@pdex1pde,@pdex1ic,@pdex1bc,x,t); % Ext

Calling an user-defined function from script, Calling an User-Defined Funct...

Calling an User-Defined Function from Script: Now, we will change our script which prompts the user for the radius and computes the area of a circle, to call our function cal

Script - matlab, Script - MATLAB: The script is a series of MATLAB ins...

Script - MATLAB: The script is a series of MATLAB instructions which is stored in a file and saved. The contents of a script can be showed in the Command Window by using the t

Switch statement, The Switch Statement: A switch statement can frequen...

The Switch Statement: A switch statement can frequently used in place of a nested if-else or an if statement with numerous else if clauses. The Switch statements are used when

Design of controller, Design a controller which regulates flow and compensa...

Design a controller which regulates flow and compensate pressure to my desire value in simscape.

Null basis and range basis, You will write functions • B=null basis(A,tol);...

You will write functions • B=null basis(A,tol); • B=range basis(A,tol); The function null basis takes a matrix A as input, and outputs a basis for the null space of A, obtained via

Program to find the undamped natural frequencies, Write a MATLAB program to...

Write a MATLAB program to find the undamped natural frequencies and modes of an electric car treating it as a four degree of freedom system. Determine the undamped natural frequenc

Rungakuta methord, the basic equation of modeling radioactive decay is wher...

the basic equation of modeling radioactive decay is where the amount of the radioactive substance is at time and is the decay rate. Some radioactive substances decay into other rad

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