{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

proj1 - Matlab Project 1 for MAS 3114 Due Friday September...

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

View Full Document Right Arrow Icon
Matlab Project 1 for MAS 3114 Due Friday, September 16 1. Define a Matlab function A=list(m,n) which produces an m × n ma- trix A whose entries are the first mn nonnegative integers in order. For instance, 0 3 list(3,2) = 1 4 2 5 2. (a) Define a Matlab function B=rowop1(A,i,j,r) which adds r times the i th row of A to the j th row of A . (b) Define a Matlab function B=rowop2(A,i,j) which interchanges the i th and j th rows of A . (c) Define a Matlab function B=rowop3(A,i,r) which multiplies the i th row of A by r . (d) Use the functions you defined in (a), (b), and (c) to (interac-
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}