Download pdf - lat01.pdf

Transcript
Page 1: lat01.pdf

1st Assigment

Numerical Computation (TKU 602/S-2)Instructor: Dr.Eng. Sunu Wibirama, S.T., M.Eng.

Monday, 16 February 2015

1. You can use Bahasa Indonesia to answer this assignment. Don’t forget toput your name and your student number in the report. The report shouldbe submitted in printed format by 23 February 2015 (direct submission toDr. Sunu before the class begins).

2. Matlab is a scientific software to help engineers and scientists doing theircomputation jobs. Install a Matlab software (or Matlab-like software)in your computer. Execute the following command and make a screencapture of the results. Explain the result of each command.>> pwd

>> ls

3. Execute the following commands and explain the result of each command:>> A = [16 3 2 13; 5 10 11 8; 9 6 7 12; 4 15 14 1]

>> size(A)

>> [r,c] = size(A)

>> A(1,1) = 6

>> A1=A(:,1:3)

>> A2=A(1:3,:)

>> A1’

>> A1’+ A2

4. You can find several useful tutorials of Matlab in the course webpage.However, instructor strongly recommends you to learn Matlab program-ming using the following resources:

• A.Gilat and V. Subramaniam, ”Appendix A: Introductory Matlab,”in Numerical Methods for Engineers and Scientists, 3rd Edition, JohnWiley & Sons, 2014, p. 509-542.

• K. Sigmon, ”Matlab Primer 3rd Edition,” Department of Mathemat-ics, University of Florida.Online PDF.

• C. Xenophontos, ”A Beginner’s Guide to Matlab,” Department ofMathematics and Computer Science, Clarkson University.Online PDF.

• MATLAB Launchpad : Official Matlab Tutorials and Learning Re-sources from MathWorks. Online Page.

1

Recommended