HW6 - Homework #6: For Loops Reading: 4.2 (Ignore 4.2.2)...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Homework #6: For Loops Reading: 4.2 (Ignore 4.2.2) Homework: This assignment will be done entirely in MATLAB. When asked for a “program” you should create an m-file (script). Be sure to turn-in the completed script along with any runs you are asked for. In addition, you need a flow diagram for each program. Turn problems in IN THE ORDER THEY ARE ASSIGNED. Each problem needs to be labeled so the TA can find your work. Do the following exercises from your textbook 1. 4.5 Test your code for N = 5 , - 1 , 3 . 6 and 60. Also, determine the maximum value of N such that MATLAB will calculate a value. To prove your result, show the final value that gives a numerical result and show the next value yields “Inf.” Write a MATLAB script (m-file) that 2. Calculates the arithmetic mean, geometric mean, root-mean square and the harmonic mean for a data set x . The means are given by the following equations: arithmetic mean = 1 N N X i =1 x i geometric mean = ( x 1 x 2 · · · x n ) 1 /N root-mean square =
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/29/2009 for the course ASE 201 taught by Professor Hayes during the Spring '07 term at University of Texas at Austin.

Page1 / 2

HW6 - Homework #6: For Loops Reading: 4.2 (Ignore 4.2.2)...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online