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

Illustration of script, Illustration of script: For illustration, we w...

Illustration of script: For illustration, we will now generate a script known as script1.m which calculates area of the circle. It assigns a value for the radius, and then com

write a matlab program to generate and plot the signal, 1.      Write a MA...

1.      Write a MATLAB program to generate and plot the signal                                     x1(n) = [3 2 -2 0 7],  n = 0,1,2,3,4. 2.      Write a MATLAB program to gen

IMAGE PROCESSING, IMAGE PROCESSING TECHNIQUES TO FIND THE HUMAN BLOOD GROUP...

IMAGE PROCESSING TECHNIQUES TO FIND THE HUMAN BLOOD GROUP

Compute a reasonable vector for lower bound and upper bond, You are a quant...

You are a quant analyst reporting directly to a portfolio manager. Your manager requires you to generate a simple code to compute several statistics for the following potential por

Batch reactor, how to wriet program for batch reactor

how to wriet program for batch reactor

Plot modulation schemes using mathlab, Plot way forms for the following mod...

Plot way forms for the following modulation schemes using Mathlab: a)      2 ASK                     b)  BFSK                        c) BPSK 4 ASK

Implement the solution using matlab, a. Develop and submit the simulation d...

a. Develop and submit the simulation described above. b. Provide a screen shot of the outputs of the DispConfig and MCResults functions. c. Notes: • Include the PPConfig f

Find and plot the magnitude of the dtft, An FIR filter has coefficients b =...

An FIR filter has coefficients b = [ 1.0000   -0.6387    1.0214    0.8210   -0.7470    1.0920 ] (a) Find H(z) for the filter and plot its frequency response (magnitude and phase

Find the boundary between equations , Find the boundary between each two of...

Find the boundary between each two of the equations P1, P2, P3 by solving: P1 = P2  ,  P1 = P3  ,  P2 = P3 Plot the boundary lines on a single figure that also includes the

How do I export multisignal wavelet signals, I am using the wavelet gui (wa...

I am using the wavelet gui (wavemenu) to decompose some data. I need to be able to export the signals. This is not a problem using only "Wavelet 1D" where only one time series is b

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