MATLAB
(Roger Jang)
[email protected]
http:/mirlab.org/jang
MATLAB
16-1
MATLAB
for For Loop
while While Loop
MATLAB
Formats of For Loops
Format 1:
for
=
end
for end
Format 2:
for
=
end
for end
MATLAB
for 6 Harmonic Sequenc
e
16-1 : forL

MATLAB
(Roger Jang)
[email protected]
http:/mirlab.org/jang
9-1
A i j
A(i, j)
MATLAB
i j Subscript
Index
A(i, j) A(i+(j-1)*m) m
A
Quiz
Suppose that A is a 2-dimensional
array of size mn.
Given A(i, j), how to find the linear index
y such that