Lecture 7
–
September 14, 2010
Agenda:
•
Additional useful MATLAB functions
•
Successive Over/Under Relaxation in Iterative
Methods (Jacobi or Gauss-Seidel)
•
In-Class Exercise 6

This
** preview**
has intentionally

**sections.**

*blurred***to view the full version.**

*Sign up*
MATLAB:
More Useful Functions
[Y,I] = max(x)
returns the largest value(s) in
x
>> [Y,I] = max(x)
% Y = maxes, I = locations
Y =
8
9
7
I =
1
3
2
>> [Y,I] = max(x,[],2)
% find row maxes
Y =
8
7
9
I =
1
3
2