HW07s10 - COLLEGE OF ENGINEERING THE UNIVERSITY OF TEXAS AT...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
COLLEGE OF ENGINEERING THE UNIVERSITY OF TEXAS AT AUSTIN Department of Chemical Engineering•Austin, Texas 78712-1062•(512)471-5238•FAX(512)471-7060 ChE 210 Homework 7 Due: Wednesday, March 31 For Loops and Arrays These problems provide more practice writing functions and using 1 dimensional arrays. The new technique of number based repetition (for loops) is also used extensively. Do Not use builtin MATLAB functions to accomplish the major task in these problems. All pages must be stapled together. Place your name, ChE 210, Homework 7, and the date at the top of the first page. When you turn in your homework fold your pages lengthwise and write your name on the outside with your name visible when the fold is to your left. 1. Suppose you have an array of grades. There can be any number of grades in the array. You wish to average all the grades to determine a grade average. Write a MATLAB function gavg( grades) that accepts a single array of grades and returns the average. Execute your function with the following
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 05/04/2010 for the course ECO 304K taught by Professor Hickenbottom during the Spring '10 term at University of Texas at Austin.

Ask a homework question - tutors are online