You are on page 1of 6

Tugas Dasar-Dasar Optimasi

“Implementasi Materi pada Aplikasi Matlab”

Disusun oleh :

Vivian Lim / 545200003

PRODI TEKNIK INDUSTRI

FAKULTAS TEKNIK

UNIVERSITAS TARUMANAGARA

JAKARTA

2021
Tugas Materi Matlab

1. Find the roots of the polynomial

P1 ( x )=x 4−10 x 3+ 35 x 2−50 x +24

2. Evaluate the polynomial

P1 ( x )=x 6 −3 x 5 +5 x 3−4 x2 +3 x +2
at x=−3
3. Plot the function

z=−2 x 3+ x+3 y 2−1

4. Matrix Writing
5. Matrix Multiplication (multiplication of row by column vectors) Let A=[ a 1 a2 … a n ]
and B=[ b 1 b2 … b n ]

Then, A*B = [ a1 b1 +a 2 b 2+ …+an bn ]


For example, if A=[ 1 2 3 4 5 ] and B=[ −2 6 −3 8 7 ] '
6. Element−by−Element Multiplication (multiplication of a row vector by another row
vector) Let C=[ c 1 c 2 … c n ] and D=[ d 1 d2 … d n ]

C.*D = [ c 1 d 1 c 2 d 2 … c n d n ]
As an example, let C=[ 1 2 3 4 5 ] and D=[ −2 6 −3 8 7 ]

7. Write the MATLAB script that produces a simple plot for the waveform defined as

−4 t −3 t t2
y=f t =3 e cos 5 t−2 e sin 2t +
( )
t+1
in the 0 ≤ t ≤ 5 seconds interval.

You might also like