This preview shows page 1. Sign up to view the full content.
Unformatted text preview: and return the appropriate outputs in the command window. Solution: %quiz8.m function [max,coord,num] = quiz8(Z) [n,m] = size(Z); num = 0; max = Z(1,1); for j = 1:n for k = 1:m if Z(j,k) >= max max = Z(j,k); coord = [j,k]; end if Z(j,k) > 0 num = num + 1; end end end end[max,coord,num] = quiz8(Z)...
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