Matlab Assignment #1
PART 1:The following problems make use of Matlab in "interactive mode" . You should find it similar to working on your calculator, but with a more convenient interface and nicer plots!
READING: Ch.1, Ch. 2, and Ch. 5 sections 1 &2 in your Matlab book
SUBMISSION: Create a diary which shows the following computations being performed. Submit a printed copy of the diary by 3/4/99.
COMPLEX NUMBERS:
Perform the following computations using Matlab:
1.) (6+j4)+(9+j3) 3.) (7-j3)(j5)
2.) (6+j4)(9+j3) 4.) 9(2+j6)/(1+j4)
MATRIX ALGEBRA:
Repeat problems 8.9, 8.15 a & b, and 8.23 from your EXCEL textbook using Matlab.
(You did all of those problem in Excel assignment #3).
Solve the following system using Matlab:
(2+j3)x + 4y + 5z = 10
3x + (4+j5)y +2z = 18
9x +7y + (8-j6)z = 23
-------------------------------------------------------------------------------------------------------------
PART 2: The following exercises use the scripting capability of Matlab. You will write some simple m-files using sequential I/O and assignment statements.
READING: Ch. 3, Sections 1-3 in your Matlab book.
SUBMISSION: Submit a printout of your m-file and a diary showing its use by 3/4/99.
Create a script that reads 3 input values from the user, and displays the sum, product, and the sum of the squares of all 3 numbers. Your output should have the following format
Sum is: x.xxxe+yy Product is: x.xxxxe+yy
Sum of Squares is: x.xxe+yy