P. 1
Introduction to MATLAB - Sikander M. Mirza

# Introduction to MATLAB - Sikander M. Mirza

|Views: 652|Likes:
This is an introductory Matlab how to guide by a Pakistani professor. Certainly the English is not so good, but it teach you the basics effectively. Overall, a nice beginner's tutorial.
This is an introductory Matlab how to guide by a Pakistani professor. Certainly the English is not so good, but it teach you the basics effectively. Overall, a nice beginner's tutorial.

See more
See less

10/25/2012

pdf

text

original

## Sections

The identity matrix having the form:

=

1

0

0

0

0

1

0

0

0

0

1

0

0

0

0

1

L

M

O

M

M

M

L

L

L

I

can be defined in Matlab with the help of the ‘eye’ function with argument
representing the size of the matrix:

>> eye(3)
ans =

1 0 0
0 1 0
0 0 1

The ‘eye’ function generates a 3x3 identity matrix when the argument is 3.

Transpose

As discussed before, the complex conjugate transpose of a matrix can be
obtained by using the apostrophe. In order to obtain the regular transpose, one
should use the dot-apostrophe. For example:

>> T=[1-j 1+j
1+j 1-j];

>> T'
ans =

1.0000 + 1.0000i 1.0000 - 1.0000i
1.0000 - 1.0000i 1.0000 + 1.0000i

>> T.'
ans =

1.0000 - 1.0000i 1.0000 + 1.0000i
1.0000 + 1.0000i 1.0000 - 1.0000i

>>

First we have defined the complex matrix T. The T’ is its complex conjugate
transpose—the complex conjugate of each element has been used after

Introduction to Matlab

27

transposing the matrix. The T.’ has simply transposed the matrix T and no
complex conjugate has been taken in this case.

scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->