This preview shows page 1. Sign up to view the full content.
Unformatted text preview: You may not use any builtin MATLAB functions except to nd the dimensions of A. Solution: %quiz7.m [n,m] = size(A); min = A(1,1); max = A(1,1); ave = 0; for j = 1:n for k = 1:m ave = ave + A(j,k); if A(j,k) > max max = A(j,k); elseif A(j,k) < min min = A(j,k); end end end ave = ave / (n*m);...
View
Full
Document
This note was uploaded on 02/14/2010 for the course ASE 201 taught by Professor Hayes during the Spring '07 term at University of Texas at Austin.
 Spring '07
 Hayes

Click to edit the document details