Program exercises 1 (Kelas S1TI-1M)

Soal exercises and problems bagi kelas S1TI-1M klik di sini, kerjakan untuk nomor:

I : 1.e,f; 2.e; 3.e; 4.c; 5.c,d; 7; 8

II : 1.g,h; 2.e,f; 6

  1. Silahkan menuliskan jawaban program menggunakan program matematika, seperti matlab, mathematics wolfram dan sebagainya di bagian komentar.
  2. Jangan lupa menuliskan nama dan NIM anda.
  3. Ingat perhatikan baik-baik kelas anda, selain program / koding, tuliskan keluaran/hasil eksekusinya dari program yang anda tulis

Perhatian : komentar tidak akan ditampilkan sebelum disetujui

119 Responses

  1. eko wahyu nugroho
    10.11.4468
    S1 TI 1M

    1.e).>> A=[1 2 -1;0 0 2;0 2 -2]

    A =

    1 2 -1
    0 0 2
    0 2 -2

    >> B=[3 1 0;5 2 1;1 1 1]

    B =

    3 1 0
    5 2 1
    1 1 1

    >> A+2*B

    ans =

    7 4 -1
    10 4 4
    2 4 0

    3e.)>> A=[1 0 -1;1 1 2]

    A =

    1 0 -1
    1 1 2

    >> B=[2 2;1 -2]

    B =

    2 2
    1 -2

    >> C=[1 1 0;2 1 0]

    C =

    1 1 0
    2 1 0

    >> 2*C-3*[A-2*C]

    ans =

    5 8 3
    13 5 -6
    4c.)
    >> A=[1 0 -1;1 1 2]

    A =

    1 0 -1
    1 1 2

    >> B=[2 2;1 -2]

    B =

    2 2
    1 -2

    >> C=[1 1 0;2 1 -2]

    C =

    1 1 0
    2 1 -2

    >> B-B

    ans =

    0 0
    0 0

    >> D=B-B

    D =

    0 0
    0 0

    >> X=D/2

    X =

    0 0
    0 0
    II
    1g)>> a=[2;1]

    a =

    2
    1

    >> b=[3 4]

    b =

    3 4

    >> C=[2 1+i;0 -1 ]

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    >> b*a

    ans =

    10

    1h.)>> C*[a+b]
    ??? Error using ==> +
    Matrix dimensions must agree.

    2e).>> A=[3;1;4]

    A =

    3
    1
    4

    >> B=[-5 4;-2 3]

    B =

    -5 4
    -2 3

    >> A*B
    ??? Error using ==> *
    Inner matrix dimensions must agree.

    2f.)>> a=[2 0;2 3]

    a =

    2 0
    2 3

    >> b=[3;1]

    b =

    3
    1

    >> a*b

    ans =

    6
    9

  2. TUGAS 2

    nama : HELMY ASHARI
    nim : 10.11.4535
    kelas : S1 TI 1M

    I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]
    ans =
    7 4 -1
    10 4 4
    2 4 0

    no 1.f)
    >> x=[1;3;0]-[2;2;1]
    x =
    -1
    1
    -1
    >> y=[4;1;0]
    y =
    4
    1
    >> x+y
    ans =
    3
    2
    -1

    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]
    u =
    2
    2
    5
    >> v=[0;1;2]
    v =
    1
    2
    >> u+v
    ans =
    2
    3
    7

    no 3.e)
    >> a=[1 0 -1;1 1 2]
    a =
    1 0 -1
    1 1 2
    >> b=[2 2;1 -2]
    b =
    2 2
    1 -2
    >> c=[1 1 0;2 1 0]
    c =
    1 1 0
    2 1 0
    >> 2*c-3*(a-2*c)
    ans =
    5 8 3
    13 5 -6

    no 4.c)
    >> b-[2 2;1 -2]
    ans =
    0 0
    0 0
    >> x=[0 0;0 0]
    x =
    0 0
    0 0
    >> 2*x+[2 2;1 -2]
    ans =
    2 2
    1 -2

    no 5.c)
    II

    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]
    a =
    2
    1
    b =
    3 4
    C =
    2.0000 1.0000 + 1.0000i
    0 -1.0000
    jawab
    >> b*a
    ans =
    10

    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soall h no dpt dihitung coz a+b itu beda ordonya)

    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (no bs di * kan coz beda ordo)

    2.f)
    >> [2 0;2 3]*[3;1]
    ans =
    6
    9

  3. JERI WANDANA
    10.11.4526

    I

    Nomor 1.

    a)
    >> [1 2 -1;0 2 2]-[3 1 0;1 1 1]

    ans =

    -2 1 -1
    -1 1 1

    b)
    >> 2*[1;3]-5*[2;2]+3*[4;1]

    ans =

    4
    -1

    c)
    >> 2*[1 4;0 0]+3*[0 0;2 1]

    ans =

    2 8
    6 3

    d)
    >> a*[1 1;1 1]+b*[1;1]
    ??? Undefined function or variable ‘a’.

    e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]

    ans =

    7 4 -1
    10 4 4
    2 4 0

    f)
    >> x*[1;3;0]-[2;2;1]+y*[4;1;0]
    ??? Undefined function or variable ‘x’.

    >>

    Nomor 2.

    a)
    >> 8*[1 2 -1;1 0 0;2 -1 3]

    ans =

    8 16 -8
    8 0 0
    16 -8 24

    b)
    >> -[2;3]+3*[2;-1]

    ans =

    4
    -6

    c)
    >> [1 4 2;1 0 3]+(-4)*[0 0 1;2 1 -2]

    ans =

    1 4 -2
    -7 -4 11

    d)
    >> 4*[0 1 -1;2 0 2;0 2 0]-2*[0 2 0;-3 0 1;1 -2 0]

    ans =

    0 0 -4
    14 0 6
    -2 12 0

    e)
    >> 2*[2;0;1]+u*[-2;2;3]+v*[0;1;2]
    ??? Undefined function or variable ‘u’.

    >>

    Nomor 3.

    >> A=[1 0 -1;1 1 2]

    A =

    1 0 -1
    1 1 2

    >> B=[2 2;1 -2]

    B =

    2 2
    1 -2

    >> C=[1 1 0;2 1 0]

    C =

    1 1 0
    2 1 0

    a)
    >> A+3*B
    ??? Error using ==> plus
    Matrix dimensions must agree.

    b)
    >> 2*A-3*C

    ans =

    -1 -3 -2
    -4 -1 4

    c)
    >> A-C

    ans =

    0 -1 -1
    -1 0 2

    d)
    >> 6*B+C
    ??? Error using ==> plus
    Matrix dimensions must agree.

    e)
    >> 2*C-3*(A-2*C)

    ans =

    5 8 3
    13 5 -6

    >>

    Nomor 4.

    a)
    >> A=[1 0 -1;1 1 2]

    A =

    1 0 -1
    1 1 2

    >> B=[2 2;1 -2]

    B =

    2 2
    1 -2

    >> C=[1 1 0;2 1 0]

    C =

    1 1 0
    2 1 0

    >> (‘X+3A=C’)

    ans =

    X+3A=C

    >> C-3*A

    ans =

    -2 1 3
    -1 -2 -6

    b)
    >> (‘A-3X=3C’)

    ans =

    A-3X=3C

    >> (A-3*C)/3

    ans =

    -0.6667 -1.0000 -0.3333
    -1.6667 -0.6667 0.6667

    c)

    >> (‘2X+[2 2;1 -2]=B’)

    ans =

    2X+[2 2;1 -2]=B

    >> (B-[2 2;1 -2])/2

    ans =

    0 0
    0 0

    II.

    Nomor 1
    >> a=[2;1]

    a =

    2
    1

    >> b=[3 4]

    b =

    3 4

    >> c=[21+i;0-1]

    c =

    21.0000 + 1.0000i
    -1.0000
    a)
    >> b*c*a

    ans =

    1.0e+002 *

    1.1800 + 0.0600i
    0.5900 + 0.0300i

    b)
    >> a*b

    ans =

    6 8
    3 4
    c)

    >> c*b

    ans =

    63.0000 + 3.0000i 84.0000 + 4.0000i
    -3.0000 -4.0000
    d)

    >> (a*c)*b
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    e)

    >> c*a
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.

    f)

    >> c*(a*b)
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    g)

    >> b*a

    ans =

    10
    h)

    >> c*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.

    >>

    nomor 2
    a)
    [1 0;0 1]*[3 -2 0;-2 5 8]

    ans =

    3 -2 0
    -2 5 8
    b)
    >> [2 1 0;0 8 2]*[1 1;2 2]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.

    c)
    [3 1 2;1 0 0;4 3 2]*[-5 4 -2;-2 3 1;1 0 4]

    ans =

    -15 15 3
    -5 4 -2
    -24 25 3

    d)
    [3 1;1 0;4 3]*[-5 4 -2;-2 3 1]

    ans =

    -17 15 -5
    -5 4 -2
    -26 25 -5

    e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (tidak bisa di kali kan karena beda ordo)

    f)
    >> [2 0;2 3]*[3;1]

    ans =

    6
    9

  4. Nama : Septian Dwi C
    NIM : 10.11.4512
    Kelas : S1TI 1M

    I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]

    ans =

    7 4 -1
    10 4 4
    2 4 0

    no 1.f)
    >> x=[1;3;0]-[2;2;1]

    x =

    -1
    1
    -1

    >> y=[4;1;0]

    y =

    4
    1

    >> x+y

    ans =

    3
    2
    -1

    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]

    u =

    2
    2
    5

    >> v=[0;1;2]

    v =

    1
    2

    >> u+v

    ans =

    2
    3
    7

    no 3.e)
    >> a=[1 0 -1;1 1 2]

    a =

    1 0 -1
    1 1 2

    >> b=[2 2;1 -2]

    b =

    2 2
    1 -2

    >> c=[1 1 0;2 1 0]

    c =

    1 1 0
    2 1 0

    >> 2*c-3*(a-2*c)

    ans =

    5 8 3
    13 5 -6

    no 4.c)
    >> b-[2 2;1 -2]

    ans =

    0 0
    0 0

    >> x=[0 0;0 0]

    x =

    0 0
    0 0

    >> 2*x+[2 2;1 -2]

    ans =

    2 2
    1 -2

    no 5.c)

    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]

    a =

    2
    1

    b =

    3 4

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    jawab
    >> b*a

    ans =

    10

    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)

    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (tidak bisa di kali kan karena beda ordo)

    2.f)
    >> [2 0;2 3]*[3;1]

    ans =

    6
    9

  5. Nama : Hermawan Agus Prasetyo
    NIM : 10.11.4499
    Kelas : S1 TI 1M

    To get started, select “MATLAB Help” from the Help menu.

    1e.)>> A=[1 2 -1;0 0 2;0 2 -2]

    A =

    1 2 -1
    0 0 2
    0 2 -2

    >> B=[3 1 0;5 2 1;1 1 1]

    B =

    3 1 0
    5 2 1
    1 1 1

    >> A+2*B

    ans =

    7 4 -1
    10 4 4
    2 4 0

    3e.)>> A=[1 0 -1;1 1 2]

    A =

    1 0 -1
    1 1 2

    >> B=[2 2;1 -2]

    B =

    2 2
    1 -2

    >> C=[1 1 0;2 1 0]

    C =

    1 1 0
    2 1 0

    >> 2*C-3*[A-2*C]

    ans =

    5 8 3
    13 5 -6

    4c.)
    >> A=[1 0 -1;1 1 2]

    A =

    1 0 -1
    1 1 2

    >> B=[2 2;1 -2]

    B =

    2 2
    1 -2

    >> C=[1 1 0;2 1 -2]

    C =

    1 1 0
    2 1 -2

    >> B-B

    ans =

    0 0
    0 0

    >> D=B-B

    D =

    0 0
    0 0

    >> X=D/2

    X =

    0 0
    0 0
    II
    1g.)>> A=[2;1]

    A =

    2
    1

    >> B=[3 4]

    B =

    3 4

    >> C=[2 1+i;0 -1 ]

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    >> B*A

    ans =

    10

    1h.)>> C*[A+B]
    ??? Error using ==> +
    Matrix dimensions must agree.

    2e).>> A=[3;1;4]

    A =

    3
    1
    4

    >> B=[-5 4;-2 3]

    B =

    -5 4
    -2 3

    >> A*B
    ??? Error using ==> *
    Inner matrix dimensions must agree.

    2f.)>> a=[2 0;2 3]

    A =

    2 0
    2 3

    >> B=[3;1]

    B =

    3
    1

    >> A*B

    ans =

    6
    9

  6. Exercise 1;
    a. >> [1 2 -1;0 2 2]-[3 1 0;1 1 1]

    ans =

    -2 1 -1
    -1 1 1

    b. >> 2*[1;3]-5*[2;2]+3*[4;1]

    ans =

    4
    -1

    c. >> 2*[1 4;0 0]+3*[0 0;2 1]

    ans =

    2 8
    6 3

    d. >> a*[1 1;1 1]+b*[1 1]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.

    e. >> [1 2 -1;0 0 2; 0 2 -2]+2*[3 1 0;5 2 1;1 1 1]

    ans =

    7 4 -1
    10 4 4
    2 4 0

    f. >> x*[1 3 0]-[2 2 1]+y*[4 1 0]
    ??? Undefined function or variable ‘x’.
    Exercise 2;
    a. >> 8*[1 2 -1;1 0 0;2 -1 3]

    ans =

    8 16 -8
    8 0 0
    16 -8 24

    b. >> -[2 3]+3*[2 -1]

    ans =

    4 -6

    c. >> [1 4 2;1 0 3]+-4*[0 0 1;2 1 -2]

    ans =

    1 4 -2
    -7 -4 11

    d. >> 4*[0 1 -1;2 0 2;0 2 0]-2*[0 2 0;-3 0 1;1 -2 0]

    ans =

    0 0 -4
    14 0 6
    -2 12 0

    e. >> 2*[2 0 1]+u*[-2 2 3]+v*[0 1 2]
    ??? Undefined function or variable ‘u’.
    Exercise 3;
    >> a=[1 0 -1;1 1 2]

    a =

    1 0 -1
    1 1 2

    >> b=[2 2;1 -2]

    b =

    2 2
    1 -2

    >> c=[1 1 0;2 1 0]

    c =

    1 1 0
    2 1 0

    a. >> a+3*b
    ??? Error using ==> plus
    Matrix dimensions must agree.

    b. >> 2*a-3*c

    ans =

    -1 -3 -2
    -4 -1 4

    c. >> a-c

    ans =

    0 -1 -1
    -1 0 2

    d. >> 6*b+c
    ??? Error using ==> plus
    Matrix dimensions must agree.

    e. >> 2*c-3*(a-2*c)

    ans =

    5 8 3
    13 5 -6
    Exercise 4;
    >> a=[1 0 -1;1 1 2]

    a =

    1 0 -1
    1 1 2

    >> b=[2 2;1 -2]

    b =

    2 2
    1 -2

    >> c=[1 1 0;2 1 0]

    c =

    1 1 0
    2 1 0

    a. >> x+3*a
    ??? Undefined function or variable ‘x’.

    b. >> a-3*x
    ??? Undefined function or variable ‘x’.
    c. >> a-3*x
    ??? Undefined function or variable ‘x’.

  7. Nama : Mahasin Ahmad alfaqh
    Kelas: S1 TI 1M
    NIM : 10.11.4530

    To get started, select “MATLAB Help” from the Help menu.

    1.e).>> A=[1 2 -1;0 0 2;0 2 -2]

    A =

    1 2 -1
    0 0 2
    0 2 -2

    >> B=[3 1 0;5 2 1;1 1 1]

    B =

    3 1 0
    5 2 1
    1 1 1

    >> A+2*B

    ans =

    7 4 -1
    10 4 4
    2 4 0

    3e.)>> A=[1 0 -1;1 1 2]

    A =

    1 0 -1
    1 1 2

    >> B=[2 2;1 -2]

    B =

    2 2
    1 -2

    >> C=[1 1 0;2 1 0]

    C =

    1 1 0
    2 1 0

    >> 2*C-3*[A-2*C]

    ans =

    5 8 3
    13 5 -6
    4c.)
    >> A=[1 0 -1;1 1 2]

    A =

    1 0 -1
    1 1 2

    >> B=[2 2;1 -2]

    B =

    2 2
    1 -2

    >> C=[1 1 0;2 1 -2]

    C =

    1 1 0
    2 1 -2

    >> B-B

    ans =

    0 0
    0 0

    >> D=B-B

    D =

    0 0
    0 0

    >> X=D/2

    X =

    0 0
    0 0
    II
    1g)>> a=[2;1]

    a =

    2
    1

    >> b=[3 4]

    b =

    3 4

    >> C=[2 1+i;0 -1 ]

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    >> b*a

    ans =

    10

    1h.)>> C*[a+b]
    ??? Error using ==> +
    Matrix dimensions must agree.

    2e).>> A=[3;1;4]

    A =

    3
    1
    4

    >> B=[-5 4;-2 3]

    B =

    -5 4
    -2 3

    >> A*B
    ??? Error using ==> *
    Inner matrix dimensions must agree.

    2f.)>> a=[2 0;2 3]

    a =

    2 0
    2 3

    >> b=[3;1]

    b =

    3
    1

    >> a*b

    ans =

    6
    9
    Reply
    #
    Beni Viktor, on 03/11/2010 at 9:16 am Said:
    0
    0

    i

    Rate This

    Quantcast

    Nama : Beni Viktor
    NIM : 10.11.4480
    Kelas : S1 TI 1-M

    To get started, select “MATLAB Help” from the Help menu.

    1.e).>> A=[1 2 -1;0 0 2;0 2 -2]

    A =

    1 2 -1
    0 0 2
    0 2 -2

    >> B=[3 1 0;5 2 1;1 1 1]

    B =

    3 1 0
    5 2 1
    1 1 1

    >> A+2*B

    ans =

    7 4 -1
    10 4 4
    2 4 0

    3e.)>> A=[1 0 -1;1 1 2]

    A =

    1 0 -1
    1 1 2

    >> B=[2 2;1 -2]

    B =

    2 2
    1 -2

    >> C=[1 1 0;2 1 0]

    C =

    1 1 0
    2 1 0

    >> 2*C-3*[A-2*C]

    ans =

    5 8 3
    13 5 -6
    4c.)
    >> A=[1 0 -1;1 1 2]

    A =

    1 0 -1
    1 1 2

    >> B=[2 2;1 -2]

    B =

    2 2
    1 -2

    >> C=[1 1 0;2 1 -2]

    C =

    1 1 0
    2 1 -2

    >> B-B

    ans =

    0 0
    0 0

    >> D=B-B

    D =

    0 0
    0 0

    >> X=D/2

    X =

    0 0
    0 0
    II
    1g)>> a=[2;1]

    a =

    2
    1

    >> b=[3 4]

    b =

    3 4

    >> C=[2 1+i;0 -1 ]

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    >> b*a

    ans =

    10

    1h.)>> C*[a+b]
    ??? Error using ==> +
    Matrix dimensions must agree.

    2e).>> A=[3;1;4]

    A =

    3
    1
    4

    >> B=[-5 4;-2 3]

    B =

    -5 4
    -2 3

    >> A*B
    ??? Error using ==> *
    Inner matrix dimensions must agree.

    2f.)>> a=[2 0;2 3]

    a =

    2 0
    2 3

    >> b=[3;1]

    b =

    3
    1

    >> a*b

    ans =

    6
    9

  8. Nama : Rizky Aprio Prasetyo
    Kelas: S1 TI 1M
    NIM : 10.11.4496

    To get started, select “MATLAB Help” from the Help menu.

    1.e).>> A=[1 2 -1;0 0 2;0 2 -2]

    A =

    1 2 -1
    0 0 2
    0 2 -2

    >> B=[3 1 0;5 2 1;1 1 1]

    B =

    3 1 0
    5 2 1
    1 1 1

    >> A+2*B

    ans =

    7 4 -1
    10 4 4
    2 4 0

    3e.)>> A=[1 0 -1;1 1 2]

    A =

    1 0 -1
    1 1 2

    >> B=[2 2;1 -2]

    B =

    2 2
    1 -2

    >> C=[1 1 0;2 1 0]

    C =

    1 1 0
    2 1 0

    >> 2*C-3*[A-2*C]

    ans =

    5 8 3
    13 5 -6
    4c.)
    >> A=[1 0 -1;1 1 2]

    A =

    1 0 -1
    1 1 2

    >> B=[2 2;1 -2]

    B =

    2 2
    1 -2

    >> C=[1 1 0;2 1 -2]

    C =

    1 1 0
    2 1 -2

    >> B-B

    ans =

    0 0
    0 0

    >> D=B-B

    D =

    0 0
    0 0

    >> X=D/2

    X =

    0 0
    0 0
    II
    1g)>> a=[2;1]

    a =

    2
    1

    >> b=[3 4]

    b =

    3 4

    >> C=[2 1+i;0 -1 ]

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    >> b*a

    ans =

    10

    1h.)>> C*[a+b]
    ??? Error using ==> +
    Matrix dimensions must agree.

    2e).>> A=[3;1;4]

    A =

    3
    1
    4

    >> B=[-5 4;-2 3]

    B =

    -5 4
    -2 3

    >> A*B
    ??? Error using ==> *
    Inner matrix dimensions must agree.

    2f.)>> a=[2 0;2 3]

    a =

    2 0
    2 3

    >> b=[3;1]

    b =

    3
    1

    >> a*b

    ans =

    6
    9
    Reply
    #
    Beni Viktor, on 03/11/2010 at 9:16 am Said:
    0
    0

    i

    Rate This

    Quantcast

    Nama : Beni Viktor
    NIM : 10.11.4480
    Kelas : S1 TI 1-M

    To get started, select “MATLAB Help” from the Help menu.

    1.e).>> A=[1 2 -1;0 0 2;0 2 -2]

    A =

    1 2 -1
    0 0 2
    0 2 -2

    >> B=[3 1 0;5 2 1;1 1 1]

    B =

    3 1 0
    5 2 1
    1 1 1

    >> A+2*B

    ans =

    7 4 -1
    10 4 4
    2 4 0

    3e.)>> A=[1 0 -1;1 1 2]

    A =

    1 0 -1
    1 1 2

    >> B=[2 2;1 -2]

    B =

    2 2
    1 -2

    >> C=[1 1 0;2 1 0]

    C =

    1 1 0
    2 1 0

    >> 2*C-3*[A-2*C]

    ans =

    5 8 3
    13 5 -6
    4c.)
    >> A=[1 0 -1;1 1 2]

    A =

    1 0 -1
    1 1 2

    >> B=[2 2;1 -2]

    B =

    2 2
    1 -2

    >> C=[1 1 0;2 1 -2]

    C =

    1 1 0
    2 1 -2

    >> B-B

    ans =

    0 0
    0 0

    >> D=B-B

    D =

    0 0
    0 0

    >> X=D/2

    X =

    0 0
    0 0
    II
    1g)>> a=[2;1]

    a =

    2
    1

    >> b=[3 4]

    b =

    3 4

    >> C=[2 1+i;0 -1 ]

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    >> b*a

    ans =

    10

    1h.)>> C*[a+b]
    ??? Error using ==> +
    Matrix dimensions must agree.

    2e).>> A=[3;1;4]

    A =

    3
    1
    4

    >> B=[-5 4;-2 3]

    B =

    -5 4
    -2 3

    >> A*B
    ??? Error using ==> *
    Inner matrix dimensions must agree.

    2f.)>> a=[2 0;2 3]

    a =

    2 0
    2 3

    >> b=[3;1]

    b =

    3
    1

    >> a*b

    ans =

    6
    9

  9. Nama : RIZAL WAHYUDIN
    Kelas: S1 TI 1M
    NIM : 10.11.4534

    To get started, select “MATLAB Help” from the Help menu.

    1.e).>> A=[1 2 -1;0 0 2;0 2 -2]

    A =

    1 2 -1
    0 0 2
    0 2 -2

    >> B=[3 1 0;5 2 1;1 1 1]

    B =

    3 1 0
    5 2 1
    1 1 1

    >> A+2*B

    ans =

    7 4 -1
    10 4 4
    2 4 0

    3e.)>> A=[1 0 -1;1 1 2]

    A =

    1 0 -1
    1 1 2

    >> B=[2 2;1 -2]

    B =

    2 2
    1 -2

    >> C=[1 1 0;2 1 0]

    C =

    1 1 0
    2 1 0

    >> 2*C-3*[A-2*C]

    ans =

    5 8 3
    13 5 -6
    4c.)
    >> A=[1 0 -1;1 1 2]

    A =

    1 0 -1
    1 1 2

    >> B=[2 2;1 -2]

    B =

    2 2
    1 -2

    >> C=[1 1 0;2 1 -2]

    C =

    1 1 0
    2 1 -2

    >> B-B

    ans =

    0 0
    0 0

    >> D=B-B

    D =

    0 0
    0 0

    >> X=D/2

    X =

    0 0
    0 0
    II
    1g)>> a=[2;1]

    a =

    2
    1

    >> b=[3 4]

    b =

    3 4

    >> C=[2 1+i;0 -1 ]

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    >> b*a

    ans =

    10

    1h.)>> C*[a+b]
    ??? Error using ==> +
    Matrix dimensions must agree.

    2e).>> A=[3;1;4]

    A =

    3
    1
    4

    >> B=[-5 4;-2 3]

    B =

    -5 4
    -2 3

    >> A*B
    ??? Error using ==> *
    Inner matrix dimensions must agree.

    2f.)>> a=[2 0;2 3]

    a =

    2 0
    2 3

    >> b=[3;1]

    b =

    3
    1

    >> a*b

    ans =

    6
    9
    Reply
    #
    Beni Viktor, on 03/11/2010 at 9:16 am Said:
    0
    0

    i

    Rate This

    Quantcast

    Nama : Beni Viktor
    NIM : 10.11.4480
    Kelas : S1 TI 1-M

    To get started, select “MATLAB Help” from the Help menu.

    1.e).>> A=[1 2 -1;0 0 2;0 2 -2]

    A =

    1 2 -1
    0 0 2
    0 2 -2

    >> B=[3 1 0;5 2 1;1 1 1]

    B =

    3 1 0
    5 2 1
    1 1 1

    >> A+2*B

    ans =

    7 4 -1
    10 4 4
    2 4 0

    3e.)>> A=[1 0 -1;1 1 2]

    A =

    1 0 -1
    1 1 2

    >> B=[2 2;1 -2]

    B =

    2 2
    1 -2

    >> C=[1 1 0;2 1 0]

    C =

    1 1 0
    2 1 0

    >> 2*C-3*[A-2*C]

    ans =

    5 8 3
    13 5 -6
    4c.)
    >> A=[1 0 -1;1 1 2]

    A =

    1 0 -1
    1 1 2

    >> B=[2 2;1 -2]

    B =

    2 2
    1 -2

    >> C=[1 1 0;2 1 -2]

    C =

    1 1 0
    2 1 -2

    >> B-B

    ans =

    0 0
    0 0

    >> D=B-B

    D =

    0 0
    0 0

    >> X=D/2

    X =

    0 0
    0 0
    II
    1g)>> a=[2;1]

    a =

    2
    1

    >> b=[3 4]

    b =

    3 4

    >> C=[2 1+i;0 -1 ]

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    >> b*a

    ans =

    10

    1h.)>> C*[a+b]
    ??? Error using ==> +
    Matrix dimensions must agree.

    2e).>> A=[3;1;4]

    A =

    3
    1
    4

    >> B=[-5 4;-2 3]

    B =

    -5 4
    -2 3

    >> A*B
    ??? Error using ==> *
    Inner matrix dimensions must agree.

    2f.)>> a=[2 0;2 3]

    a =

    2 0
    2 3

    >> b=[3;1]

    b =

    3
    1

    >> a*b

    ans =

    6
    9

  10. Nama :Mahasin Ahmad Alfaqh
    Kelas: S1 TI 1M
    NIM : 10.11.4530

    #

    Nama :Dwi Prasetyo Wibowo
    NIM : 10.11.4471
    Kelas : S1 TI 1-M

    To get started, select “MATLAB Help” from the Help menu.

    1.e).>> A=[1 2 -1;0 0 2;0 2 -2]

    A =

    1 2 -1
    0 0 2
    0 2 -2

    >> B=[3 1 0;5 2 1;1 1 1]

    B =

    3 1 0
    5 2 1
    1 1 1

    >> A+2*B

    ans =

    7 4 -1
    10 4 4
    2 4 0

    3e.)>> A=[1 0 -1;1 1 2]

    A =

    1 0 -1
    1 1 2

    >> B=[2 2;1 -2]

    B =

    2 2
    1 -2

    >> C=[1 1 0;2 1 0]

    C =

    1 1 0
    2 1 0

    >> 2*C-3*[A-2*C]

    ans =

    5 8 3
    13 5 -6
    4c.)
    >> A=[1 0 -1;1 1 2]

    A =

    1 0 -1
    1 1 2

    >> B=[2 2;1 -2]

    B =

    2 2
    1 -2

    >> C=[1 1 0;2 1 -2]

    C =

    1 1 0
    2 1 -2

    >> B-B

    ans =

    0 0
    0 0

    >> D=B-B

    D =

    0 0
    0 0

    >> X=D/2

    X =

    0 0
    0 0
    II
    1g)>> a=[2;1]

    a =

    2
    1

    >> b=[3 4]

    b =

    3 4

    >> C=[2 1+i;0 -1 ]

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    >> b*a

    ans =

    10

    1h.)>> C*[a+b]
    ??? Error using ==> +
    Matrix dimensions must agree.

    2e).>> A=[3;1;4]

    A =

    3
    1
    4

    >> B=[-5 4;-2 3]

    B =

    -5 4
    -2 3

    >> A*B
    ??? Error using ==> *
    Inner matrix dimensions must agree.

    2f.)>> a=[2 0;2 3]

    a =

    2 0
    2 3

    >> b=[3;1]

    b =

    3
    1

    >> a*b

    ans =

    6
    9
    Reply
    #
    Beni Viktor, on 03/11/2010 at 9:16 am Said:
    0
    0

    i

    Rate This

    Quantcast

    Nama : Beni Viktor
    NIM : 10.11.4480
    Kelas : S1 TI 1-M

    To get started, select “MATLAB Help” from the Help menu.

    1.e).>> A=[1 2 -1;0 0 2;0 2 -2]

    A =

    1 2 -1
    0 0 2
    0 2 -2

    >> B=[3 1 0;5 2 1;1 1 1]

    B =

    3 1 0
    5 2 1
    1 1 1

    >> A+2*B

    ans =

    7 4 -1
    10 4 4
    2 4 0

    3e.)>> A=[1 0 -1;1 1 2]

    A =

    1 0 -1
    1 1 2

    >> B=[2 2;1 -2]

    B =

    2 2
    1 -2

    >> C=[1 1 0;2 1 0]

    C =

    1 1 0
    2 1 0

    >> 2*C-3*[A-2*C]

    ans =

    5 8 3
    13 5 -6
    4c.)
    >> A=[1 0 -1;1 1 2]

    A =

    1 0 -1
    1 1 2

    >> B=[2 2;1 -2]

    B =

    2 2
    1 -2

    >> C=[1 1 0;2 1 -2]

    C =

    1 1 0
    2 1 -2

    >> B-B

    ans =

    0 0
    0 0

    >> D=B-B

    D =

    0 0
    0 0

    >> X=D/2

    X =

    0 0
    0 0
    II
    1g)>> a=[2;1]

    a =

    2
    1

    >> b=[3 4]

    b =

    3 4

    >> C=[2 1+i;0 -1 ]

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    >> b*a

    ans =

    10

    1h.)>> C*[a+b]
    ??? Error using ==> +
    Matrix dimensions must agree.

    2e).>> A=[3;1;4]

    A =

    3
    1
    4

    >> B=[-5 4;-2 3]

    B =

    -5 4
    -2 3

    >> A*B
    ??? Error using ==> *
    Inner matrix dimensions must agree.

    2f.)>> a=[2 0;2 3]

    a =

    2 0
    2 3

    >> b=[3;1]

    b =

    3
    1

    >> a*b

    ans =

    6
    9

  11. Nama: Mahasin Ahmad Alfaqh
    Kelas: S1 TI 1M
    NIM : 10.11.4530

    #

    Nama :Dwi Prasetyo Wibowo
    NIM : 10.11.4471
    Kelas : S1 TI 1-M

    To get started, select “MATLAB Help” from the Help menu.

    1.e).>> A=[1 2 -1;0 0 2;0 2 -2]

    A =

    1 2 -1
    0 0 2
    0 2 -2

    >> B=[3 1 0;5 2 1;1 1 1]

    B =

    3 1 0
    5 2 1
    1 1 1

    >> A+2*B

    ans =

    7 4 -1
    10 4 4
    2 4 0

    3e.)>> A=[1 0 -1;1 1 2]

    A =

    1 0 -1
    1 1 2

    >> B=[2 2;1 -2]

    B =

    2 2
    1 -2

    >> C=[1 1 0;2 1 0]

    C =

    1 1 0
    2 1 0

    >> 2*C-3*[A-2*C]

    ans =

    5 8 3
    13 5 -6
    4c.)
    >> A=[1 0 -1;1 1 2]

    A =

    1 0 -1
    1 1 2

    >> B=[2 2;1 -2]

    B =

    2 2
    1 -2

    >> C=[1 1 0;2 1 -2]

    C =

    1 1 0
    2 1 -2

    >> B-B

    ans =

    0 0
    0 0

    >> D=B-B

    D =

    0 0
    0 0

    >> X=D/2

    X =

    0 0
    0 0
    II
    1g)>> a=[2;1]

    a =

    2
    1

    >> b=[3 4]

    b =

    3 4

    >> C=[2 1+i;0 -1 ]

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    >> b*a

    ans =

    10

    1h.)>> C*[a+b]
    ??? Error using ==> +
    Matrix dimensions must agree.

    2e).>> A=[3;1;4]

    A =

    3
    1
    4

    >> B=[-5 4;-2 3]

    B =

    -5 4
    -2 3

    >> A*B
    ??? Error using ==> *
    Inner matrix dimensions must agree.

    2f.)>> a=[2 0;2 3]

    a =

    2 0
    2 3

    >> b=[3;1]

    b =

    3
    1

    >> a*b

    ans =

    6
    9
    Reply
    #
    Beni Viktor, on 03/11/2010 at 9:16 am Said:
    0
    0

    i

    Rate This

    Quantcast

    Nama : Beni Viktor
    NIM : 10.11.4480
    Kelas : S1 TI 1-M

    To get started, select “MATLAB Help” from the Help menu.

    1.e).>> A=[1 2 -1;0 0 2;0 2 -2]

    A =

    1 2 -1
    0 0 2
    0 2 -2

    >> B=[3 1 0;5 2 1;1 1 1]

    B =

    3 1 0
    5 2 1
    1 1 1

    >> A+2*B

    ans =

    7 4 -1
    10 4 4
    2 4 0

    3e.)>> A=[1 0 -1;1 1 2]

    A =

    1 0 -1
    1 1 2

    >> B=[2 2;1 -2]

    B =

    2 2
    1 -2

    >> C=[1 1 0;2 1 0]

    C =

    1 1 0
    2 1 0

    >> 2*C-3*[A-2*C]

    ans =

    5 8 3
    13 5 -6
    4c.)
    >> A=[1 0 -1;1 1 2]

    A =

    1 0 -1
    1 1 2

    >> B=[2 2;1 -2]

    B =

    2 2
    1 -2

    >> C=[1 1 0;2 1 -2]

    C =

    1 1 0
    2 1 -2

    >> B-B

    ans =

    0 0
    0 0

    >> D=B-B

    D =

    0 0
    0 0

    >> X=D/2

    X =

    0 0
    0 0
    II
    1g)>> a=[2;1]

    a =

    2
    1

    >> b=[3 4]

    b =

    3 4

    >> C=[2 1+i;0 -1 ]

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    >> b*a

    ans =

    10

    1h.)>> C*[a+b]
    ??? Error using ==> +
    Matrix dimensions must agree.

    2e).>> A=[3;1;4]

    A =

    3
    1
    4

    >> B=[-5 4;-2 3]

    B =

    -5 4
    -2 3

    >> A*B
    ??? Error using ==> *
    Inner matrix dimensions must agree.

    2f.)>> a=[2 0;2 3]

    a =

    2 0
    2 3

    >> b=[3;1]

    b =

    3
    1

    >> a*b

    ans =

    6
    9

  12. I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]

    ans =

    7 4 -1
    10 4 4
    2 4 0

    no 1.f)
    >> x=[1;3;0]-[2;2;1]

    x =

    -1
    1
    -1

    >> y=[4;1;0]

    y =

    4
    1
    0

    >> x+y

    ans =

    3
    2
    -1

    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]

    u =

    2
    2
    5

    >> v=[0;1;2]

    v =

    0
    1
    2

    >> u+v

    ans =

    2
    3
    7

    no 3.e)
    >> a=[1 0 -1;1 1 2]

    a =

    1 0 -1
    1 1 2

    >> b=[2 2;1 -2]

    b =

    2 2
    1 -2

    >> c=[1 1 0;2 1 0]

    c =

    1 1 0
    2 1 0

    >> 2*c-3*(a-2*c)

    ans =

    5 8 3
    13 5 -6

    no 4.c)
    >> b-[2 2;1 -2]

    ans =

    0 0
    0 0

    >> x=[0 0;0 0]

    x =

    0 0
    0 0

    >> 2*x+[2 2;1 -2]

    ans =

    2 2
    1 -2

    no 5.c)

    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]

    a =

    2
    1

    b =

    3 4

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    jawab
    >> b*a

    ans =

    10

    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.

  13. Nama : Yanu Arsapto Yuwono
    NIM : 10.21.0531

    keluaran/hasil eksekusinya dari program :

    1.e).
    A =
    1 2 -1
    0 0 2
    0 2 -2

    B =
    3 1 0
    5 2 1
    1 1 1

    A+2*B =
    7 4 -1
    10 4 4
    2 4 0

    3e.)
    A =
    1 0 -1
    1 1 2

    B =
    2 2
    1 -2

    C =
    1 1 0
    2 1 0

    2*C-3*[A-2*C] =
    5 8 3
    13 5 -6

    4c.)

    A =
    1 0 -1
    1 1 2

    B =
    2 2
    1 -2

    C =
    1 1 0
    2 1 -2

    B-B =
    0 0
    0 0

    D=B-B
    D =
    0 0
    0 0

    X=D/2
    X =
    0 0
    0 0

    II
    1g)
    a =
    2
    1

    b =
    3 4

    C =
    2.0000 1.0000 + 1.0000i
    0 -1.0000

    b*a =
    10

    1h.)
    Matrix dimensions must agree.

    2e).
    A =
    3
    1
    4

    B =
    -5 4
    -2 3

    A*B =
    Inner matrix dimensions must agree.

    2f.)
    a =
    2 0
    2 3

    b =
    3
    1
    a*b =
    6
    9

    //program atau koding menggunakan pemrograman java dengan editor Netbeans 6.8:

    import Jama.Matrix;

    public class KalkulatorMatrix extends javax.swing.JInternalFrame {

    /** Creates new form MainForm */
    public KalkulatorMatrix() {
    initComponents();
    refresh();
    }

    private void initComponents() {

    jPanel1 = new javax.swing.JPanel();
    jScrollPane1 = new javax.swing.JScrollPane();
    txtA = new javax.swing.JTextArea();
    jScrollPane2 = new javax.swing.JScrollPane();
    txtB = new javax.swing.JTextArea();
    jLabel1 = new javax.swing.JLabel();
    jLabel2 = new javax.swing.JLabel();
    cbFungsi = new javax.swing.JComboBox();
    btnRefresh = new javax.swing.JButton();
    btnHitung = new javax.swing.JButton();
    btnKeluar = new javax.swing.JButton();
    jScrollPane3 = new javax.swing.JScrollPane();
    txtHasil = new javax.swing.JTextArea();
    lblError = new javax.swing.JLabel();
    cekSP = new javax.swing.JCheckBox();
    btnTukar = new javax.swing.JButton();

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    setTitle(“Penghitung Matrix”);

    jPanel1.setBackground(new java.awt.Color(204, 255, 204));

    txtA.setColumns(20);
    txtA.setRows(5);
    jScrollPane1.setViewportView(txtA);

    txtB.setColumns(20);
    txtB.setRows(5);
    jScrollPane2.setViewportView(txtB);

    jLabel1.setFont(new java.awt.Font(“Tahoma”, 1, 12)); // NOI18N
    jLabel1.setText(“MATRIX A”);

    jLabel2.setFont(new java.awt.Font(“Tahoma”, 1, 12)); // NOI18N
    jLabel2.setText(“MATRIX B”);

    cbFungsi.setModel(new javax.swing.DefaultComboBoxModel(new String[] { “+”, “-“, “x”, “/” }));

    btnRefresh.setText(“Refresh”);
    btnRefresh.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    btnRefreshActionPerformed(evt);
    }
    });

    btnHitung.setText(“Lihat Hasil”);
    btnHitung.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    btnHitungActionPerformed(evt);
    }
    });

    btnKeluar.setText(“Keluar”);
    btnKeluar.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    btnKeluarActionPerformed(evt);
    }
    });

    txtHasil.setColumns(20);
    txtHasil.setRows(5);
    jScrollPane3.setViewportView(txtHasil);

    lblError.setForeground(new java.awt.Color(204, 0, 0));
    lblError.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);

    cekSP.setText(“Scalar Product”);

    btnTukar.setText(“”);
    btnTukar.setToolTipText(“Tukar”);
    btnTukar.setContentAreaFilled(false);
    btnTukar.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    btnTukarActionPerformed(evt);
    }
    });

    javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
    jPanel1.setLayout(jPanel1Layout);
    jPanel1Layout.setHorizontalGroup(
    jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addGroup(jPanel1Layout.createSequentialGroup()
    .addContainerGap()
    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addComponent(lblError, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 413, Short.MAX_VALUE)
    .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 413, Short.MAX_VALUE)
    .addGroup(jPanel1Layout.createSequentialGroup()
    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addGroup(jPanel1Layout.createSequentialGroup()
    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
    .addGroup(jPanel1Layout.createSequentialGroup()
    .addComponent(btnTukar)
    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED))
    .addGroup(jPanel1Layout.createSequentialGroup()
    .addComponent(cbFungsi, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
    .addGap(18, 18, 18))))
    .addComponent(jLabel1))
    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addComponent(jLabel2)
    .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
    .addGroup(jPanel1Layout.createSequentialGroup()
    .addComponent(btnRefresh)
    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
    .addComponent(btnHitung)
    .addGap(18, 18, 18)
    .addComponent(cekSP)
    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 75, Short.MAX_VALUE)
    .addComponent(btnKeluar)))
    .addContainerGap())
    );
    jPanel1Layout.setVerticalGroup(
    jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addGroup(jPanel1Layout.createSequentialGroup()
    .addGap(27, 27, 27)
    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
    .addComponent(jLabel2)
    .addComponent(jLabel1))
    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addGroup(jPanel1Layout.createSequentialGroup()
    .addComponent(btnTukar)
    .addGap(18, 18, 18)
    .addComponent(cbFungsi, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
    .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
    .addGap(14, 14, 14)
    .addComponent(lblError, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)
    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
    .addComponent(btnRefresh)
    .addComponent(btnHitung)
    .addComponent(btnKeluar)
    .addComponent(cekSP))
    .addGap(18, 18, 18)
    .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 185, javax.swing.GroupLayout.PREFERRED_SIZE)
    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
    );

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(
    layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
    );
    layout.setVerticalGroup(
    layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
    );

    pack();
    }//

    private void btnKeluarActionPerformed(java.awt.event.ActionEvent evt) {
    // TODO add your handling code here:
    dispose();
    }

    private void btnHitungActionPerformed(java.awt.event.ActionEvent evt) {
    // TODO add your handling code here:
    hitung();
    }

    private void btnRefreshActionPerformed(java.awt.event.ActionEvent evt) {
    // TODO add your handling code here:
    refresh();
    }

    private void btnTukarActionPerformed(java.awt.event.ActionEvent evt) {
    // TODO add your handling code here:
    String sA = txtA.getText();
    String sB = txtB.getText();
    txtA.setText(sB);
    txtB.setText(sA);
    }
    /**
    * @param args the command line arguments
    */
    // Variables declaration – do not modify
    private javax.swing.JButton btnHitung;
    private javax.swing.JButton btnKeluar;
    private javax.swing.JButton btnRefresh;
    private javax.swing.JButton btnTukar;
    private javax.swing.JComboBox cbFungsi;
    private javax.swing.JCheckBox cekSP;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JLabel lblError;
    private javax.swing.JTextArea txtA;
    private javax.swing.JTextArea txtB;
    private javax.swing.JTextArea txtHasil;
    // End of variables declaration

    private void refresh() {
    txtA.setText(“”);
    txtB.setText(“”);
    txtHasil.setText(“”);
    lblError.setText(“”);
    }

    private void hitung() {

    if (cekSP.isSelected()) {
    hitungScalarPoduct();

    } else {
    String[] rowA = txtA.getText().split(“\n”);
    double[][] dsesA = new double[rowA.length][rowA[0].split(“,”).length];

    for (int i = 0; i < rowA.length; i++) {
    String[] ses = rowA[i].split(",");
    for (int j = 0; j < rowA[0].split(",").length; j++) {
    dsesA[i][j] = Double.parseDouble(ses[j]);
    // System.out.println("doubleA[][] = " + dsesA[i][j]);
    }
    }

    String[] rowB = txtB.getText().split("\n");
    double[][] dsesB = new double[rowB.length][rowB[0].split(",").length];

    for (int i = 0; i < rowB.length; i++) {
    String[] ses = rowB[i].split(",");
    for (int j = 0; j < rowB[0].split(",").length; j++) {
    dsesB[i][j] = Double.parseDouble(ses[j]);
    // System.out.println("doubleB[][] = " + dsesB[i][j]);
    }
    }

    Matrix A = new Matrix(dsesA);
    Matrix B = new Matrix(dsesB);
    Matrix C = null;// = A.plus(B);
    try {
    if (cbFungsi.getSelectedIndex() == 0) {
    C = A.plus(B);
    } else if (cbFungsi.getSelectedIndex() == 1) {
    C = A.minus(B);
    } else if (cbFungsi.getSelectedIndex() == 2) {
    C = A.times(B);
    } else {
    C = A.solve(B);
    }

    String outPut = "";
    double[][] array3 = C.getArray();
    for (int i = 0; i < array3.length; i++) {
    for (int j = 0; j < array3[0].length; j++) {
    outPut = outPut + array3[i][j] + "\t";
    }
    outPut = outPut + "\n";
    }
    txtHasil.setText(outPut);
    } catch (Exception e) {
    txtHasil.setText(e.getMessage());
    }
    }
    }

    private void hitungScalarPoduct() {
    String[] a = txtA.getText().split(",");
    String[] b = txtB.getText().split(",");
    Double[] c = new Double[a.length];
    try {
    Double out = 0.0;
    if (cbFungsi.getSelectedIndex() == 0) {
    for (int i = 0; i < a.length; i++) {
    c[i] = Double.parseDouble(a[i]) + Double.parseDouble(b[i]);
    }
    } else if (cbFungsi.getSelectedIndex() == 1) {
    for (int i = 0; i < a.length; i++) {
    c[i] = Double.parseDouble(a[i]) – Double.parseDouble(b[i]);
    }
    } else if (cbFungsi.getSelectedIndex() == 2) {
    for (int i = 0; i < a.length; i++) {
    c[i] = Double.parseDouble(a[i]) * Double.parseDouble(b[i]);
    }
    } else {
    for (int i = 0; i < a.length; i++) {
    c[i] = Double.parseDouble(a[i]) / Double.parseDouble(b[i]);
    }
    }
    for (int i = 0; i < c.length; i++) {
    out = out + c[i];
    }
    txtHasil.setText(out.toString());
    } catch (Exception e) {
    txtHasil.setText(e.getMessage());
    }
    }
    }

  14. Nama :Teguh Yudha Setiawan
    NIM :10.11.4505
    Kelas :S1-TI 1M

    I. Exercises and Problems

    No. 1.)
    e.)
    >> a=[1 2 -1;0 0 2;0 2 -2]

    a =

    1 2 -1
    0 0 2
    0 2 -2

    >> b=[3 1 0;5 2 1;1 1 1]

    b =

    3 1 0
    5 2 1
    1 1 1

    >> a+2*b

    ans =

    7 4 -1
    10 4 4
    2 4 0

    f.)
    >> x=[1;3;0]-[2;2;1]

    x =

    -1
    1
    -1

    >> y=[4;1;0]

    y =

    4
    1
    0

    >> x+y

    ans =

    3
    2
    -1

    No. 2.)
    e.)
    >> u=[-2;2;3]+2*[2;0;1]

    u =

    2
    2
    5

    >> v=[0;1;2]

    v =

    0
    1
    2

    >> u+v

    ans =

    2
    3
    7

    No. 3.)
    e.)
    >> a=[1 0 -1;1 1 2]

    a =

    1 0 -1
    1 1 2

    >> b=[2 2;1 -2]

    b =

    2 2
    1 -2

    >> c=[1 1 0;2 1 0]

    c =

    1 1 0
    2 1 0

    >> 2*c-3*(a-2*c)

    ans =

    5 8 3
    13 5 -6

    No. 4.)
    c.)
    >> b=[2 2;1 -2]

    b =

    2 2
    1 -2

    >> x=[0 0;0 0]

    x =

    0 0
    0 0

    >> 2*x+[2 2;1 -2]

    ans =

    2 2
    1 -2

    II. Exercises and Problems

    No. 1.)
    g.)
    >> b=[3 4]

    b =

    3 4

    >> a=[2;1]

    a =

    2
    1

    >> b*a

    ans =

    10

    h.)
    >> a=[2;1]

    a =

    2
    1

    >> b=[3 4]

    b =

    3 4

    >> c=[2 1+i;0 -1]

    c =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    >> c*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.

    No. 2.)
    e .)
    >> a=[3;1;4]

    a =

    3
    1
    4

    >> b=[-5 4;-2 3]

    b =

    -5 4
    -2 3

    >> a*b
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.

    f.)
    >> a=[2 0;2 3]

    a =

    2 0
    2 3

    >> b=[3;1]

    b =

    3
    1

    >> a*b

    ans =

    6
    9

  15. Nama: Risyaf Hermada Fikri
    Nim: 10.11.4527
    Kelas: S1 TI-M

    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]
    ans =
    7 4 -1
    10 4 4
    2 4 0
    no 1.f)
    >> x=[1;3;0]-[2;2;1]
    x =
    -1
    1
    -1
    >> y=[4;1;0]
    y =
    4
    1
    0
    >> x+y
    ans =
    3
    2
    -1
    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]
    u =
    2
    2
    5
    >> v=[0;1;2]
    v =
    0
    1
    2
    >> u+v
    ans =
    2
    3
    7
    no 3.e)
    >> a=[1 0 -1;1 1 2]
    a =
    1 0 -1
    1 1 2
    >> b=[2 2;1 -2]
    b =
    2 2
    1 -2
    >> c=[1 1 0;2 1 0]
    c =
    1 1 0
    2 1 0
    >> 2*c-3*(a-2*c)
    ans =
    5 8 3
    13 5 -6
    no 4.c)
    >> b-[2 2;1 -2]
    ans =
    0 0
    0 0
    >> x=[0 0;0 0]
    x =
    0 0
    0 0
    >> 2*x+[2 2;1 -2]
    ans =
    2 2
    1 -2
    no 5.c)
    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]
    a =
    2
    1
    b =
    3 4
    C =
    2.0000 1.0000 + 1.0000i
    0 -1.0000
    jawab
    >> b*a
    ans =
    10
    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.

    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.

    2.f)
    >> [2 0;2 3]*[3;1]
    ans =
    6
    9

  16. NAMA : MUHAMMAD YUSUF
    NIM : 10.11.4469
    KELAS : 1M
    I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]
    ans =
    7 4 -1
    10 4 4
    2 4 0
    no 1.f)
    >> x=[1;3;0]-[2;2;1]
    x =
    -1
    1
    -1
    >> y=[4;1;0]
    y =
    4
    1
    0
    >> x+y
    ans =
    3
    2
    -1
    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]
    u =
    2
    2
    5
    >> v=[0;1;2]
    v =
    0
    1
    2
    >> u+v
    ans =
    2
    3
    7
    no 3.e)
    >> a=[1 0 -1;1 1 2]
    a =
    1 0 -1
    1 1 2
    >> b=[2 2;1 -2]
    b =
    2 2
    1 -2
    >> c=[1 1 0;2 1 0]
    c =
    1 1 0
    2 1 0
    >> 2*c-3*(a-2*c)
    ans =
    5 8 3
    13 5 -6
    no 4.c)
    >> b-[2 2;1 -2]
    ans =
    0 0
    0 0
    >> x=[0 0;0 0]
    x =
    0 0
    0 0
    >> 2*x+[2 2;1 -2]
    ans =
    2 2
    1 -2
    no 5.c)
    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]
    a =
    2
    1
    b =
    3 4
    C =
    2.0000 1.0000 + 1.0000i
    0 -1.0000
    jawab
    >> b*a
    ans =
    10
    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)
    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (tidak bisa di kali kan karena beda ordo)
    2.f)
    >> [2 0;2 3]*[3;1]
    ans =
    6
    9

  17. Nama : Septian Dwi Cahyono
    NIM : 10.11.4512
    Kelas : S1 TI 1M
    I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]
    ans =
    7 4 -1
    10 4 4
    2 4 0
    no 1.f)
    >> x=[1;3;0]-[2;2;1]
    x =
    -1
    1
    -1
    >> y=[4;1;0]
    y =
    4
    1
    0
    >> x+y
    ans =
    3
    2
    -1
    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]
    u =
    2
    2
    5
    >> v=[0;1;2]
    v =
    0
    1
    2
    >> u+v
    ans =
    2
    3
    7
    no 3.e)
    >> a=[1 0 -1;1 1 2]
    a =
    1 0 -1
    1 1 2
    >> b=[2 2;1 -2]
    b =
    2 2
    1 -2
    >> c=[1 1 0;2 1 0]
    c =
    1 1 0
    2 1 0
    >> 2*c-3*(a-2*c)
    ans =
    5 8 3
    13 5 -6
    no 4.c)
    >> b-[2 2;1 -2]
    ans =
    0 0
    0 0
    >> x=[0 0;0 0]
    x =
    0 0
    0 0
    >> 2*x+[2 2;1 -2]
    ans =
    2 2
    1 -2
    no 5.c)
    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]
    a =
    2
    1
    b =
    3 4
    C =
    2.0000 1.0000 + 1.0000i
    0 -1.0000
    jawab
    >> b*a
    ans =
    10
    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)
    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (tidak bisa di kali kan karena beda ordo)
    2.f)
    >> [2 0;2 3]*[3;1]
    ans =
    6
    9

  18. Nama : Septian Dwi Cahyono
    NIM :10.11.4512

    I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]
    ans =
    7 4 -1
    10 4 4
    2 4 0
    no 1.f)
    >> x=[1;3;0]-[2;2;1]
    x =
    -1
    1
    -1
    >> y=[4;1;0]
    y =
    4
    1
    0
    >> x+y
    ans =
    3
    2
    -1
    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]
    u =
    2
    2
    5
    >> v=[0;1;2]
    v =
    0
    1
    2
    >> u+v
    ans =
    2
    3
    7
    no 3.e)
    >> a=[1 0 -1;1 1 2]
    a =
    1 0 -1
    1 1 2
    >> b=[2 2;1 -2]
    b =
    2 2
    1 -2
    >> c=[1 1 0;2 1 0]
    c =
    1 1 0
    2 1 0
    >> 2*c-3*(a-2*c)
    ans =
    5 8 3
    13 5 -6
    no 4.c)
    >> b-[2 2;1 -2]
    ans =
    0 0
    0 0
    >> x=[0 0;0 0]
    x =
    0 0
    0 0
    >> 2*x+[2 2;1 -2]
    ans =
    2 2
    1 -2
    no 5.c)
    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]
    a =
    2
    1
    b =
    3 4
    C =
    2.0000 1.0000 + 1.0000i
    0 -1.0000
    jawab
    >> b*a
    ans =
    10
    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)
    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (tidak bisa di kali kan karena beda ordo)
    2.f)
    >> [2 0;2 3]*[3;1]
    ans =
    6
    9

  19. NAMA : ZAKIUL FAHMI JAILANI
    NIM : 10.11.4537
    KELAS : S1.TI.1M

    1.e).>> A=[1 2 -1;0 0 2;0 2 -2]

    A =

    1 2 -1
    0 0 2
    0 2 -2

    >> B=[3 1 0;5 2 1;1 1 1]

    B =

    3 1 0
    5 2 1
    1 1 1

    >> A+2*B

    ans =

    7 4 -1
    10 4 4
    2 4 0

    3e.)>> A=[1 0 -1;1 1 2]

    A =

    1 0 -1
    1 1 2

    >> B=[2 2;1 -2]

    B =

    2 2
    1 -2

    >> C=[1 1 0;2 1 0]

    C =

    1 1 0
    2 1 0

    >> 2*C-3*[A-2*C]

    ans =

    5 8 3
    13 5 -6
    4c.)
    >> A=[1 0 -1;1 1 2]

    A =

    1 0 -1
    1 1 2

    >> B=[2 2;1 -2]

    B =

    2 2
    1 -2

    >> C=[1 1 0;2 1 -2]

    C =

    1 1 0
    2 1 -2

    >> B-B

    ans =

    0 0
    0 0

    >> D=B-B

    D =

    0 0
    0 0

    >> X=D/2

    X =

    0 0
    0 0
    II
    1g)>> a=[2;1]

    a =

    2
    1

    >> b=[3 4]

    b =

    3 4

    >> C=[2 1+i;0 -1 ]

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    >> b*a

    ans =

    10

    1h.)>> C*[a+b]
    ??? Error using ==> +
    Matrix dimensions must agree.

    2e).>> A=[3;1;4]

    A =

    3
    1
    4

    >> B=[-5 4;-2 3]

    B =

    -5 4
    -2 3

    >> A*B
    ??? Error using ==> *
    Inner matrix dimensions must agree.

    2f.)>> a=[2 0;2 3]

    a =

    2 0
    2 3

    >> b=[3;1]

    b =

    3
    1

    >> a*b

    ans =

    6
    9

  20. Nama : Septian Dwi Cahyono
    NIM : 10.11.4512
    Kelas : S1 TI – 1M
    I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]
    ans =
    7 4 -1
    10 4 4
    2 4 0
    no 1.f)
    >> x=[1;3;0]-[2;2;1]
    x =
    -1
    1
    -1
    >> y=[4;1;0]
    y =
    4
    1
    0
    >> x+y
    ans =
    3
    2
    -1
    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]
    u =
    2
    2
    5
    >> v=[0;1;2]
    v =
    0
    1
    2
    >> u+v
    ans =
    2
    3
    7
    no 3.e)
    >> a=[1 0 -1;1 1 2]
    a =
    1 0 -1
    1 1 2
    >> b=[2 2;1 -2]
    b =
    2 2
    1 -2
    >> c=[1 1 0;2 1 0]
    c =
    1 1 0
    2 1 0
    >> 2*c-3*(a-2*c)
    ans =
    5 8 3
    13 5 -6
    no 4.c)
    >> b-[2 2;1 -2]
    ans =
    0 0
    0 0
    >> x=[0 0;0 0]
    x =
    0 0
    0 0
    >> 2*x+[2 2;1 -2]
    ans =
    2 2
    1 -2
    no 5.c)
    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]
    a =
    2
    1
    b =
    3 4
    C =
    2.0000 1.0000 + 1.0000i
    0 -1.0000
    jawab
    >> b*a
    ans =
    10
    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)
    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (tidak bisa di kali kan karena beda ordo)
    2.f)
    >> [2 0;2 3]*[3;1]
    ans =
    6
    9

  21. NAMA: Gani Anggoro
    Nim: 10.11.4510
    KELAS:1M

    I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]

    ans =

    7 4 -1
    10 4 4
    2 4 0

    no 1.f)
    >> x=[1;3;0]-[2;2;1]

    x =

    -1
    1
    -1

    >> y=[4;1;0]

    y =

    4
    1
    0

    >> x+y

    ans =

    3
    2
    -1

    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]

    u =

    2
    2
    5

    >> v=[0;1;2]

    v =

    0
    1
    2

    >> u+v

    ans =

    2
    3
    7

    no 3.e)
    >> a=[1 0 -1;1 1 2]

    a =

    1 0 -1
    1 1 2

    >> b=[2 2;1 -2]

    b =

    2 2
    1 -2

    >> c=[1 1 0;2 1 0]

    c =

    1 1 0
    2 1 0

    >> 2*c-3*(a-2*c)

    ans =

    5 8 3
    13 5 -6

    no 4.c)
    >> b-[2 2;1 -2]

    ans =

    0 0
    0 0

    >> x=[0 0;0 0]

    x =

    0 0
    0 0

    >> 2*x+[2 2;1 -2]

    ans =

    2 2
    1 -2

    no 5.c)

    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]

    a =

    2
    1

    b =

    3 4

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    jawab
    >> b*a

    ans =

    10

    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)

    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (tidak bisa di kali kan karena beda ordo)

    2.f)
    >> [2 0;2 3]*[3;1]

    ans =

    6
    9

  22. NAMA : OKI NUR PRATOMO
    NIM : 10.11.4528

    I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]
    ans =
    7 4 -1
    10 4 4
    2 4 0
    no 1.f)
    >> x=[1;3;0]-[2;2;1]
    x =
    -1
    1
    -1
    >> y=[4;1;0]
    y =
    4
    1
    0
    >> x+y
    ans =
    3
    2
    -1
    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]
    u =
    2
    2
    5
    >> v=[0;1;2]
    v =
    0
    1
    2
    >> u+v
    ans =
    2
    3
    7
    no 3.e)
    >> a=[1 0 -1;1 1 2]
    a =
    1 0 -1
    1 1 2
    >> b=[2 2;1 -2]
    b =
    2 2
    1 -2
    >> c=[1 1 0;2 1 0]
    c =
    1 1 0
    2 1 0
    >> 2*c-3*(a-2*c)
    ans =
    5 8 3
    13 5 -6
    no 4.c)
    >> b-[2 2;1 -2]
    ans =
    0 0
    0 0
    >> x=[0 0;0 0]
    x =
    0 0
    0 0
    >> 2*x+[2 2;1 -2]
    ans =
    2 2
    1 -2
    no 5.c)
    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]
    a =
    2
    1
    b =
    3 4
    C =
    2.0000 1.0000 + 1.0000i
    0 -1.0000
    jawab
    >> b*a
    ans =
    10
    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)
    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (tidak bisa di kali kan karena beda ordo)
    2.f)
    >> [2 0;2 3]*[3;1]
    ans =
    6
    9

  23. NAMA : RAKHMAT SOLIHI
    NIM : 10.11.4507

    I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]
    ans =
    7 4 -1
    10 4 4
    2 4 0
    no 1.f)
    >> x=[1;3;0]-[2;2;1]
    x =
    -1
    1
    -1
    >> y=[4;1;0]
    y =
    4
    1
    0
    >> x+y
    ans =
    3
    2
    -1
    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]
    u =
    2
    2
    5
    >> v=[0;1;2]
    v =
    0
    1
    2
    >> u+v
    ans =
    2
    3
    7
    no 3.e)
    >> a=[1 0 -1;1 1 2]
    a =
    1 0 -1
    1 1 2
    >> b=[2 2;1 -2]
    b =
    2 2
    1 -2
    >> c=[1 1 0;2 1 0]
    c =
    1 1 0
    2 1 0
    >> 2*c-3*(a-2*c)
    ans =
    5 8 3
    13 5 -6
    no 4.c)
    >> b-[2 2;1 -2]
    ans =
    0 0
    0 0
    >> x=[0 0;0 0]
    x =
    0 0
    0 0
    >> 2*x+[2 2;1 -2]
    ans =
    2 2
    1 -2
    no 5.c)
    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]
    a =
    2
    1
    b =
    3 4
    C =
    2.0000 1.0000 + 1.0000i
    0 -1.0000
    jawab
    >> b*a
    ans =
    10
    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)
    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (tidak bisa di kali kan karena beda ordo)
    2.f)
    >> [2 0;2 3]*[3;1]
    ans =
    6
    9

  24. I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]

    ans =

    7 4 -1
    10 4 4
    2 4 0

    no 1.f)
    >> x=[1;3;0]-[2;2;1]

    x =

    -1
    1
    -1

    >> y=[4;1;0]

    y =

    4
    1

    >> x+y

    ans =

    3
    2
    -1

    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]

    u =

    2
    2
    5

    >> v=[0;1;2]

    v =

    1
    2

    >> u+v

    ans =

    2
    3
    7

    no 3.e)
    >> a=[1 0 -1;1 1 2]

    a =

    1 0 -1
    1 1 2

    >> b=[2 2;1 -2]

    b =

    2 2
    1 -2

    >> c=[1 1 0;2 1 0]

    c =

    1 1 0
    2 1 0

    >> 2*c-3*(a-2*c)

    ans =

    5 8 3
    13 5 -6

    no 4.c)
    >> b-[2 2;1 -2]

    ans =

    0 0
    0 0

    >> x=[0 0;0 0]

    x =

    0 0
    0 0

    >> 2*x+[2 2;1 -2]

    ans =

    2 2
    1 -2

    no 5.c)

    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]

    a =

    2
    1

    b =

    3 4

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    jawab
    >> b*a

    ans =

    10

    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)

    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (tidak bisa di kali kan karena beda ordo)

    2.f)
    >> [2 0;2 3]*[3;1]

    ans =

    6
    9

  25. Exercises_and_Problems_1
    I : 1.e,f; 2.e; 3.e; 4.c; 5.c,d; 7; 8

    II : 1.g,h; 2.e,f; 6
    1.e).>> A=[1 2 -1;0 0 2;0 2 -2]

    A =

    1 2 -1
    0 0 2
    0 2 -2

    >> B=[3 1 0;5 2 1;1 1 1]

    B =

    3 1 0
    5 2 1
    1 1 1

    >> A+2*B

    ans =

    7 4 -1
    10 4 4
    2 4 0

    3e.)>> A=[1 0 -1;1 1 2]

    A =

    1 0 -1
    1 1 2

    >> B=[2 2;1 -2]

    B =

    2 2
    1 -2

    >> C=[1 1 0;2 1 0]

    C =

    1 1 0
    2 1 0

    >> 2*C-3*[A-2*C]

    ans =

    5 8 3
    13 5 -6
    4c.)
    >> A=[1 0 -1;1 1 2]

    A =

    1 0 -1
    1 1 2

    >> B=[2 2;1 -2]

    B =

    2 2
    1 -2

    >> C=[1 1 0;2 1 -2]

    C =

    1 1 0
    2 1 -2

    >> B-B

    ans =

    0 0
    0 0

    >> D=B-B

    D =

    0 0
    0 0

    >> X=D/2

    X =

    0 0
    0 0
    II
    1g)>> a=[2;1]

    a =

    2
    1

    >> b=[3 4]

    b =

    3 4

    >> C=[2 1+i;0 -1 ]

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    >> b*a

    ans =

    10

    1h.)>> C*[a+b]
    ??? Error using ==> +
    Matrix dimensions must agree.

    2e).>> A=[3;1;4]

    A =

    3
    1
    4

    >> B=[-5 4;-2 3]

    B =

    -5 4
    -2 3

    >> A*B
    ??? Error using ==> *
    Inner matrix dimensions must agree.

    2f.)>> a=[2 0;2 3]

    a =

    2 0
    2 3

    >> b=[3;1]

    b =

    3
    1

    >> a*b

    ans =

    6
    9

  26. 20101029_Exercises_and_Problems_1

    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]

    ans =

    7 4 -1
    10 4 4
    2 4 0

    no 1.f)
    >> x=[1;3;0]-[2;2;1],y=[4;1;0]

    x =

    -1
    1
    -1

    y =

    4
    1
    0

    >> x+y

    ans =

    3
    2
    -1

    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1],v=[0;1;2]

    u =

    2
    2
    5

    v =

    0
    1
    2

    >> u+v

    ans =

    2
    3
    7

    no 3.e)
    >> a=[1 0 -1;1 1 2],b=[2 2;1 -2],c=[1 1 0;2 1 0]

    a =

    1 0 -1
    1 1 2

    b =

    2 2
    1 -2

    c =

    1 1 0
    2 1 0

    >> 2*c-3*(a-2*c)

    ans =

    5 8 3
    13 5 -6

    no 4.c)
    >> x=b-[2 2;1 -2]

    x =

    0 0
    0 0

    Pembuktian
    >> 2*x+[2 2;1 -2]

    ans =

    2 2
    1 -2

    II. Exercises and Problems
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]

    a =

    2
    1

    b =

    3 4

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    jawab
    >> b*a

    ans =

    10

    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)

    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (Eror karena beda ordo antara himpunan)

    2.f)
    >> [2 0;2 3]*[3;1]

    ans =

    6
    9

  27. 20101029_Exercises_and_Problems_1

    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]

    ans =

    7 4 -1
    10 4 4
    2 4 0

    no 1.f)
    >> x=[1;3;0]-[2;2;1],y=[4;1;0]

    x =

    -1
    1
    -1

    y =

    4
    1
    0

    >> x+y

    ans =

    3
    2
    -1

    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1],v=[0;1;2]

    u =

    2
    2
    5

    v =

    0
    1
    2

    >> u+v

    ans =

    2
    3
    7

    no 3.e)
    >> a=[1 0 -1;1 1 2],b=[2 2;1 -2],c=[1 1 0;2 1 0]

    a =

    1 0 -1
    1 1 2

    b =

    2 2
    1 -2

    c =

    1 1 0
    2 1 0

    >> 2*c-3*(a-2*c)

    ans =

    5 8 3
    13 5 -6

    no 4.c)
    >> x=b-[2 2;1 -2]

    x =

    0 0
    0 0

    Pembuktian
    >> 2*x+[2 2;1 -2]

    ans =

    2 2
    1 -2

    II. Exercises and Problems
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]

    a =

    2
    1

    b =

    3 4

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    jawab
    >> b*a

    ans =

    10

    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)

    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (Eror karena beda ordo antara himpunan)

    2.f)
    >> [2 0;2 3]*[3;1]

    ans =

    6
    9

  28. ALJABAR LINIER DAN MATRIKS
    20101029_Exercises_and_Problems_1
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]

    ans =

    7 4 -1
    10 4 4
    2 4 0

    no 1.f)
    >> x=[1;3;0]-[2;2;1],y=[4;1;0]

    x =

    -1
    1
    -1

    y =

    4
    1
    0

    >> x+y

    ans =

    3
    2
    -1

    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1],v=[0;1;2]

    u =

    2
    2
    5

    v =

    0
    1
    2

    >> u+v

    ans =

    2
    3
    7

    no 3.e)
    >> a=[1 0 -1;1 1 2],b=[2 2;1 -2],c=[1 1 0;2 1 0]

    a =

    1 0 -1
    1 1 2

    b =

    2 2
    1 -2

    c =

    1 1 0
    2 1 0

    >> 2*c-3*(a-2*c)

    ans =

    5 8 3
    13 5 -6

    no 4.c)
    >> x=b-[2 2;1 -2]

    x =

    0 0
    0 0

    Pembuktian
    >> 2*x+[2 2;1 -2]

    ans =

    2 2
    1 -2

    II. Exercises and Problems
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]

    a =

    2
    1

    b =

    3 4

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    jawab
    >> b*a

    ans =

    10

    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)

    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (Eror karena beda ordo antara himpunan)

    2.f)
    >> [2 0;2 3]*[3;1]

    ans =

    6
    9

  29. I.1.e

    >> [1 2 -1; 0 0 2; 0 2 -2]+2*[3 1 0; 5 2 1; 1 1 1]

    ans =

    7 4 -1
    10 4 4
    2 4 0

    I.1.f

    >> x=[1; 3; 0]-[2; 2; 1]

    x =

    -1
    1
    -1

    >> y=[4; 1; 0]

    y =

    4
    1
    0

    >> x+y

    ans =

    3
    2
    -1

    I.2.e

    >> u=[-2; 2; 3]+2*[2; 0; 1]

    u =

    2
    2
    5

    >> v=[0; 1; 2]

    v =

    0
    1
    2

    >> u+v

    ans =

    2
    3
    7

    I.3.e

    >> a=[1 0 -1; 1 1 2]

    a =

    1 0 -1
    1 1 2

    >> b=[2 2; 1 -2]

    b =

    2 2
    1 -2

    >> c=[1 1 0; 2 1 0]

    c =

    1 1 0
    2 1 0

    >> 2*c-3*(a-2*c)

    ans =

    5 8 3
    13 5 -6

    I.4.c

    >> b-[2 2; 1 -2]

    ans =

    0 0
    0 0

    >> x=[0 0; 0 0]

    x =

    0 0
    0 0

    >> 2*x+[2 2;1 -2]

    ans =

    2 2
    1 -2

    II.1.g

    >> a=[2; 1], b=[3 4], c=[2 1+i; 0 -1]

    a =

    2
    1

    b =

    3 4

    c =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    >> b*a

    ans =

    10

    II.2.f

    >> [2 0; 2 3]*[3; 1]

    ans =

    6
    9

  30. NIM : 10.11.4510
    Nama : Gani Anggoro
    Kelas : S1 TI-M

    I. Exercises and Problems
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]

    ans =

    7 4 -1
    10 4 4
    2 4 0

    no 1.f)
    >> x=[1;3;0]-[2;2;1],y=[4;1;0]

    x =

    -1
    1
    -1

    y =

    4
    1
    0

    >> x+y

    ans =

    3
    2
    -1

    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1],v=[0;1;2]

    u =

    2
    2
    5

    v =

    0
    1
    2

    >> u+v

    ans =

    2
    3
    7

    no 3.e)
    >> a=[1 0 -1;1 1 2],b=[2 2;1 -2],c=[1 1 0;2 1 0]

    a =

    1 0 -1
    1 1 2

    b =

    2 2
    1 -2

    c =

    1 1 0
    2 1 0

    >> 2*c-3*(a-2*c)

    ans =

    5 8 3
    13 5 -6

    no 4.c)
    >> x=b-[2 2;1 -2]

    x =

    0 0
    0 0

    Pembuktian
    >> 2*x+[2 2;1 -2]

    ans =

    2 2
    1 -2

    II. Exercises and Problems
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]

    a =

    2
    1

    b =

    3 4

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    jawab
    >> b*a

    ans =

    10

    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)

    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (Eror karena beda ordo antara himpunan)

    2.f)
    >> [2 0;2 3]*[3;1]

    ans =

    6
    9

  31. Adnan Dwipa Hanggoro
    10.11.4539
    S1T1/1M

    1.e).>> A=[1 2 -1;0 0 2;0 2 -2]

    A =

    1 2 -1
    0 0 2
    0 2 -2

    >> B=[3 1 0;5 2 1;1 1 1]

    B =

    3 1 0
    5 2 1
    1 1 1

    >> A+2*B

    ans =

    7 4 -1
    10 4 4
    2 4 0

    3e.)>> A=[1 0 -1;1 1 2]

    A =

    1 0 -1
    1 1 2

    >> B=[2 2;1 -2]

    B =

    2 2
    1 -2

    >> C=[1 1 0;2 1 0]

    C =

    1 1 0
    2 1 0

    >> 2*C-3*[A-2*C]

    ans =

    5 8 3
    13 5 -6
    4c.)
    >> A=[1 0 -1;1 1 2]

    A =

    1 0 -1
    1 1 2

    >> B=[2 2;1 -2]

    B =

    2 2
    1 -2

    >> C=[1 1 0;2 1 -2]

    C =

    1 1 0
    2 1 -2

    >> B-B

    ans =

    0 0
    0 0

    >> D=B-B

    D =

    0 0
    0 0

    >> X=D/2

    X =

    0 0
    0 0
    II
    1g)>> a=[2;1]

    a =

    2
    1

    >> b=[3 4]

    b =

    3 4

    >> C=[2 1+i;0 -1 ]

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    >> b*a

    ans =

    10

    1h.)>> C*[a+b]
    ??? Error using ==> +
    Matrix dimensions must agree.

    2e).>> A=[3;1;4]

    A =

    3
    1
    4

    >> B=[-5 4;-2 3]

    B =

    -5 4
    -2 3

    >> A*B
    ??? Error using ==> *
    Inner matrix dimensions must agree.

    2f.)>> a=[2 0;2 3]

    a =

    2 0
    2 3

    >> b=[3;1]

    b =

    3
    1

    >> a*b

    ans =

    6
    9

  32. 1.e).>> A=[1 2 -1;0 0 2;0 2 -2]

    A =

    1 2 -1
    0 0 2
    0 2 -2

    >> B=[3 1 0;5 2 1;1 1 1]

    B =

    3 1 0
    5 2 1
    1 1 1

    >> A+2*B

    ans =

    7 4 -1
    10 4 4
    2 4 0

    3e.)>> A=[1 0 -1;1 1 2]

    A =

    1 0 -1
    1 1 2

    >> B=[2 2;1 -2]

    B =

    2 2
    1 -2

    >> C=[1 1 0;2 1 0]

    C =

    1 1 0
    2 1 0

    >> 2*C-3*[A-2*C]

    ans =

    5 8 3
    13 5 -6
    4c.)
    >> A=[1 0 -1;1 1 2]

    A =

    1 0 -1
    1 1 2

    >> B=[2 2;1 -2]

    B =

    2 2
    1 -2

    >> C=[1 1 0;2 1 -2]

    C =

    1 1 0
    2 1 -2

    >> B-B

    ans =

    0 0
    0 0

    >> D=B-B

    D =

    0 0
    0 0

    >> X=D/2

    X =

    0 0
    0 0
    II
    1g)>> a=[2;1]

    a =

    2
    1

    >> b=[3 4]

    b =

    3 4

    >> C=[2 1+i;0 -1 ]

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    >> b*a

    ans =

    10

    1h.)>> C*[a+b]
    ??? Error using ==> +
    Matrix dimensions must agree.

    2e).>> A=[3;1;4]

    A =

    3
    1
    4

    >> B=[-5 4;-2 3]

    B =

    -5 4
    -2 3

    >> A*B
    ??? Error using ==> *
    Inner matrix dimensions must agree.

    2f.)>> a=[2 0;2 3]

    a =

    2 0
    2 3

    >> b=[3;1]

    b =

    3
    1

    >> a*b

    ans =

    6
    9

  33. To get started, select “MATLAB Help” from the Help menu.

    1.e).>> A=[1 2 -1;0 0 2;0 2 -2]

    A =

    1 2 -1
    0 0 2
    0 2 -2

    >> B=[3 1 0;5 2 1;1 1 1]

    B =

    3 1 0
    5 2 1
    1 1 1

    >> A+2*B

    ans =

    7 4 -1
    10 4 4
    2 4 0

    3e.)>> A=[1 0 -1;1 1 2]

    A =

    1 0 -1
    1 1 2

    >> B=[2 2;1 -2]

    B =

    2 2
    1 -2

    >> C=[1 1 0;2 1 0]

    C =

    1 1 0
    2 1 0

    >> 2*C-3*[A-2*C]

    ans =

    5 8 3
    13 5 -6
    4c.)
    >> A=[1 0 -1;1 1 2]

    A =

    1 0 -1
    1 1 2

    >> B=[2 2;1 -2]

    B =

    2 2
    1 -2

    >> C=[1 1 0;2 1 -2]

    C =

    1 1 0
    2 1 -2

    >> B-B

    ans =

    0 0
    0 0

    >> D=B-B

    D =

    0 0
    0 0

    >> X=D/2

    X =

    0 0
    0 0
    II
    1g)>> a=[2;1]

    a =

    2
    1

    >> b=[3 4]

    b =

    3 4

    >> C=[2 1+i;0 -1 ]

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    >> b*a

    ans =

    10

    1h.)>> C*[a+b]
    ??? Error using ==> +
    Matrix dimensions must agree.

    2e).>> A=[3;1;4]

    A =

    3
    1
    4

    >> B=[-5 4;-2 3]

    B =

    -5 4
    -2 3

    >> A*B
    ??? Error using ==> *
    Inner matrix dimensions must agree.

    2f.)>> a=[2 0;2 3]

    a =

    2 0
    2 3

    >> b=[3;1]

    b =

    3
    1

    >> a*b

    ans =

    6
    9

  34. I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]

    ans =

    7 4 -1
    10 4 4
    2 4 0

    no 1.f)
    >> x=[1;3;0]-[2;2;1]

    x =

    -1
    1
    -1

    >> y=[4;1;0]

    y =

    4
    1

    >> x+y

    ans =

    3
    2
    -1

    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]

    u =

    2
    2
    5

    >> v=[0;1;2]

    v =

    1
    2

    >> u+v

    ans =

    2
    3
    7

    no 3.e)
    >> a=[1 0 -1;1 1 2]

    a =

    1 0 -1
    1 1 2

    >> b=[2 2;1 -2]

    b =

    2 2
    1 -2

    >> c=[1 1 0;2 1 0]

    c =

    1 1 0
    2 1 0

    >> 2*c-3*(a-2*c)

    ans =

    5 8 3
    13 5 -6

    no 4.c)
    >> b-[2 2;1 -2]

    ans =

    0 0
    0 0

    >> x=[0 0;0 0]

    x =

    0 0
    0 0

    >> 2*x+[2 2;1 -2]

    ans =

    2 2
    1 -2

    no 5.c)

    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]

    a =

    2
    1

    b =

    3 4

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    jawab
    >> b*a

    ans =

    10

    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)

    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (tidak bisa di kali kan karena beda ordo)

    2.f)
    >> [2 0;2 3]*[3;1]

    ans =

    6
    9

  35. I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]

    ans =

    7 4 -1
    10 4 4
    2 4 0

    no 1.f)
    >> x=[1;3;0]-[2;2;1]

    x =

    -1
    1
    -1

    >> y=[4;1;0]

    y =

    4
    1

    >> x+y

    ans =

    3
    2
    -1

    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]

    u =

    2
    2
    5

    >> v=[0;1;2]

    v =

    1
    2

    >> u+v

    ans =

    2
    3
    7

    no 3.e)
    >> a=[1 0 -1;1 1 2]

    a =

    1 0 -1
    1 1 2

    >> b=[2 2;1 -2]

    b =

    2 2
    1 -2

    >> c=[1 1 0;2 1 0]

    c =

    1 1 0
    2 1 0

    >> 2*c-3*(a-2*c)

    ans =

    5 8 3
    13 5 -6

    no 4.c)
    >> b-[2 2;1 -2]

    ans =

    0 0
    0 0

    >> x=[0 0;0 0]

    x =

    0 0
    0 0

    >> 2*x+[2 2;1 -2]

    ans =

    2 2
    1 -2

    no 5.c)

    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]

    a =

    2
    1

    b =

    3 4

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    jawab
    >> b*a

    ans =

    10

    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)

    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (tidak bisa di kali kan karena beda ordo)

    2.f)

    >> [2 0;2 3]*[3;1]

    ans =

    6
    9

  36. I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]

    ans =

    7 4 -1
    10 4 4
    2 4 0

    no 1.f)
    >> x=[1;3;0]-[2;2;1]

    x =

    -1
    1
    -1

    >> y=[4;1;0]

    y =

    4
    1

    >> x+y

    ans =

    3
    2
    -1

    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]

    u =

    2
    2
    5

    >> v=[0;1;2]

    v =

    1
    2

    >> u+v

    ans =

    2
    3
    7

    no 3.e)
    >> a=[1 0 -1;1 1 2]

    a =

    1 0 -1
    1 1 2

    >> b=[2 2;1 -2]

    b =

    2 2
    1 -2

    >> c=[1 1 0;2 1 0]

    c =

    1 1 0
    2 1 0

    >> 2*c-3*(a-2*c)

    ans =

    5 8 3
    13 5 -6

    no 4.c)
    >> b-[2 2;1 -2]

    ans =

    0 0
    0 0

    >> x=[0 0;0 0]

    x =

    0 0
    0 0

    >> 2*x+[2 2;1 -2]

    ans =

    2 2
    1 -2

    no 5.c)

    II
    1.g)

    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]

    a =

    2
    1

    b =

    3 4

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    jawab
    >> b*a

    ans =

    10

    1.h)

    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)

    2.e)

    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (tidak bisa di kali kan karena beda ordo)

    2.f)

    >> [2 0;2 3]*[3;1]

    ans =

    6
    9

  37. Nama: SURYAWAN PRIANTORO
    NIM: 10.11.4533
    Kelas: 1M

    I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]
    ans =
    7 4 -1
    10 4 4
    2 4 0
    no 1.f)
    >> x=[1;3;0]-[2;2;1]
    x =
    -1
    1
    -1
    >> y=[4;1;0]
    y =
    4
    1
    0
    >> x+y
    ans =
    3
    2
    -1
    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]
    u =
    2
    2
    5
    >> v=[0;1;2]
    v =
    0
    1
    2
    >> u+v
    ans =
    2
    3
    7
    no 3.e)
    >> a=[1 0 -1;1 1 2]
    a =
    1 0 -1
    1 1 2
    >> b=[2 2;1 -2]
    b =
    2 2
    1 -2
    >> c=[1 1 0;2 1 0]
    c =
    1 1 0
    2 1 0
    >> 2*c-3*(a-2*c)
    ans =
    5 8 3
    13 5 -6
    no 4.c)
    >> b-[2 2;1 -2]
    ans =
    0 0
    0 0
    >> x=[0 0;0 0]
    x =
    0 0
    0 0
    >> 2*x+[2 2;1 -2]
    ans =
    2 2
    1 -2
    no 5.c)
    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]
    a =
    2
    1
    b =
    3 4
    C =
    2.0000 1.0000 + 1.0000i
    0 -1.0000
    jawab
    >> b*a
    ans =
    10
    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)
    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (tidak bisa di kali kan karena beda ordo)
    2.f)
    >> [2 0;2 3]*[3;1]
    ans =
    6
    9

  38. NAMA : FENDI PRIYANTO
    NIM : 10.11.4488
    KELAS: SI TI / M

    I.
    no 1.e)
    [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]

    ans =

    7 4 -1
    10 4 4
    2 4 0

    no 1.f)
    x=[1;3;0]-[2;2;1]

    x = -1
    1
    -1

    y=[4;1;0]

    y = 4
    1

    x+y

    ans =

    3
    2
    -1

    no 2.e)
    u=[-2;2;3]+2*[2;0;1]

    u = 2
    2
    5

    v=[0;1;2]

    v = 1
    2

    u+v

    ans =
    2
    3
    7

    no 3.e)
    a=[1 0 -1;1 1 2]

    a=
    1 0 -1
    1 1 2

    b=[2 2;1 -2]

    b =

    2 2
    1 -2

    c=[1 1 0;2 1 0]

    c =

    1 1 0
    2 1 0

    2*c-3*(a-2*c)

    ans =

    5 8 3
    13 5 -6

    no 4.c)
    b-[2 2;1 -2]

    ans =

    0 0
    0 0

    x=[0 0;0 0]

    x =

    0 0
    0 0

    2*x+[2 2;1 -2]

    ans =

    2 2
    1 -2

    no 5.c)

    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]

    a = 2

    1

    b =

    3 4

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    jawab
    b*a

    ans =

    10

    1.h)
    C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (munculnya kaya gini)

    2.e)
    [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (kata teman teman beda ordo, jadi gak bisa di kalikan)

    2.f)
    [2 0;2 3]*[3;1]

    ans =

    6
    9

  39. Muhamad Amirudin Fauzi
    10.11.4479
    S1T1/1M

    1.e).>> A=[1 2 -1;0 0 2;0 2 -2]

    A =

    1 2 -1
    0 0 2
    0 2 -2

    >> B=[3 1 0;5 2 1;1 1 1]

    B =

    3 1 0
    5 2 1
    1 1 1

    >> A+2*B

    ans =

    7 4 -1
    10 4 4
    2 4 0

    3e.)>> A=[1 0 -1;1 1 2]

    A =

    1 0 -1
    1 1 2

    >> B=[2 2;1 -2]

    B =

    2 2
    1 -2

    >> C=[1 1 0;2 1 0]

    C =

    1 1 0
    2 1 0

    >> 2*C-3*[A-2*C]

    ans =

    5 8 3
    13 5 -6
    4c.)
    >> A=[1 0 -1;1 1 2]

    A =

    1 0 -1
    1 1 2

    >> B=[2 2;1 -2]

    B =

    2 2
    1 -2

    >> C=[1 1 0;2 1 -2]

    C =

    1 1 0
    2 1 -2

    >> B-B

    ans =

    0 0
    0 0

    >> D=B-B

    D =

    0 0
    0 0

    >> X=D/2

    X =

    0 0
    0 0
    II
    1g)>> a=[2;1]

    a =

    2
    1

    >> b=[3 4]

    b =

    3 4

    >> C=[2 1+i;0 -1 ]

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    >> b*a

    ans =

    10

    1h.)>> C*[a+b]
    ??? Error using ==> +
    Matrix dimensions must agree.

    2e).>> A=[3;1;4]

    A =

    3
    1
    4

    >> B=[-5 4;-2 3]

    B =

    -5 4
    -2 3

    >> A*B
    ??? Error using ==> *
    Inner matrix dimensions must agree.

    2f.)>> a=[2 0;2 3]

    a =

    2 0
    2 3

    >> b=[3;1]

    b =

    3
    1

    >> a*b

    ans =

    6
    9

  40. I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]
    ans =
    7 4 -1
    10 4 4
    2 4 0
    no 1.f)
    >> x=[1;3;0]-[2;2;1]
    x =
    -1
    1
    -1
    >> y=[4;1;0]
    y =
    4
    1
    0
    >> x+y
    ans =
    3
    2
    -1
    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]
    u =
    2
    2
    5
    >> v=[0;1;2]
    v =
    0
    1
    2
    >> u+v
    ans =
    2
    3
    7
    no 3.e)
    >> a=[1 0 -1;1 1 2]
    a =
    1 0 -1
    1 1 2
    >> b=[2 2;1 -2]
    b =
    2 2
    1 -2
    >> c=[1 1 0;2 1 0]
    c =
    1 1 0
    2 1 0
    >> 2*c-3*(a-2*c)
    ans =
    5 8 3
    13 5 -6
    no 4.c)
    >> b-[2 2;1 -2]
    ans =
    0 0
    0 0
    >> x=[0 0;0 0]
    x =
    0 0
    0 0
    >> 2*x+[2 2;1 -2]
    ans =
    2 2
    1 -2
    no 5.c)
    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]
    a =
    2
    1
    b =
    3 4
    C =
    2.0000 1.0000 + 1.0000i
    0 -1.0000
    jawab
    >> b*a
    ans =
    10
    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)
    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (tidak bisa di kali kan karena beda ordo)
    2.f)
    >> [2 0;2 3]*[3;1]
    ans =
    6
    9

  41. I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]

    ans =

    7 4 -1
    10 4 4
    2 4 0

    no 1.f)
    >> x=[1;3;0]-[2;2;1]

    x =

    -1
    1
    -1

    >> y=[4;1;0]

    y =

    4
    1

    >> x+y

    ans =

    3
    2
    -1

    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]

    u =

    2
    2
    5

    >> v=[0;1;2]

    v =

    1
    2

    >> u+v

    ans =

    2
    3
    7

    no 3.e)
    >> a=[1 0 -1;1 1 2]

    a =

    1 0 -1
    1 1 2

    >> b=[2 2;1 -2]

    b =

    2 2
    1 -2

    >> c=[1 1 0;2 1 0]

    c =

    1 1 0
    2 1 0

    >> 2*c-3*(a-2*c)

    ans =

    5 8 3
    13 5 -6

    no 4.c)
    >> b-[2 2;1 -2]

    ans =

    0 0
    0 0

    >> x=[0 0;0 0]

    x =

    0 0
    0 0

    >> 2*x+[2 2;1 -2]

    ans =

    2 2
    1 -2

    no 5.c)

    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]

    a =

    2
    1

    b =

    3 4

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    jawab
    >> b*a

    ans =

    10

    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)

    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (tidak bisa di kali kan karena beda ordo)

    2.f)
    >> [2 0;2 3]*[3;1]

    ans =

    6
    9

  42. Nama : Hampron Triandoko
    NIM : 10.11.4529
    Kelas : M

    I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]

    ans =

    7 4 -1
    10 4 4
    2 4 0

    no 1.f)
    >> x=[1;3;0]-[2;2;1]

    x =

    -1
    1
    -1

    >> y=[4;1;0]

    y =

    4
    1

    >> x+y

    ans =

    3
    2
    -1

    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]

    u =

    2
    2
    5

    >> v=[0;1;2]

    v =

    1
    2

    >> u+v

    ans =

    2
    3
    7

    no 3.e)
    >> a=[1 0 -1;1 1 2]

    a =

    1 0 -1
    1 1 2

    >> b=[2 2;1 -2]

    b =

    2 2
    1 -2

    >> c=[1 1 0;2 1 0]

    c =

    1 1 0
    2 1 0

    >> 2*c-3*(a-2*c)

    ans =

    5 8 3
    13 5 -6

    no 4.c)
    >> b-[2 2;1 -2]

    ans =

    0 0
    0 0

    >> x=[0 0;0 0]

    x =

    0 0
    0 0

    >> 2*x+[2 2;1 -2]

    ans =

    2 2
    1 -2

    no 5.c)

    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]

    a =

    2
    1

    b =

    3 4

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    jawab
    >> b*a

    ans =

    10

    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)

    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (tidak bisa di kali kan karena beda ordo)

    2.f)
    >> [2 0;2 3]*[3;1]

    ans =

    6
    9

  43. nama : muhammjad usman rosyidi
    nim :10.11.4489
    kelas : s1 ti m
    I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]

    ans =

    7 4 -1
    10 4 4
    2 4 0

    no 1.f)
    >> x=[1;3;0]-[2;2;1]

    x =

    -1
    1
    -1

    >> y=[4;1;0]

    y =

    4
    1

    >> x+y

    ans =

    3
    2
    -1

    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]

    u =

    2
    2
    5

    >> v=[0;1;2]

    v =

    1
    2

    >> u+v

    ans =

    2
    3
    7

    no 3.e)
    >> a=[1 0 -1;1 1 2]

    a =

    1 0 -1
    1 1 2

    >> b=[2 2;1 -2]

    b =

    2 2
    1 -2

    >> c=[1 1 0;2 1 0]

    c =

    1 1 0
    2 1 0

    >> 2*c-3*(a-2*c)

    ans =

    5 8 3
    13 5 -6

    no 4.c)
    >> b-[2 2;1 -2]

    ans =

    0 0
    0 0

    >> x=[0 0;0 0]

    x =

    0 0
    0 0

    >> 2*x+[2 2;1 -2]

    ans =

    2 2
    1 -2

    no 5.c)

    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]

    a =

    2
    1

    b =

    3 4

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    jawab
    >> b*a

    ans =

    10

    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)

    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (tidak bisa di kali kan karena beda ordo)

    2.f)
    >> [2 0;2 3]*[3;1]

    ans =

    6
    9

  44. Nama; Dede Agus Mulyadi
    NIM: 10.11.4502
    Kelas:S1.TI1M

    I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]

    ans =

    7 4 -1
    10 4 4
    2 4 0

    no 1.f)
    >> x=[1;3;0]-[2;2;1]

    x =

    -1
    1
    -1

    >> y=[4;1;0]

    y =

    4
    1

    >> x+y

    ans =

    3
    2
    -1

    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]

    u =

    2
    2
    5

    >> v=[0;1;2]

    v =

    1
    2

    >> u+v

    ans =

    2
    3
    7

    no 3.e)
    >> a=[1 0 -1;1 1 2]

    a =

    1 0 -1
    1 1 2

    >> b=[2 2;1 -2]

    b =

    2 2
    1 -2

    >> c=[1 1 0;2 1 0]

    c =

    1 1 0
    2 1 0

    >> 2*c-3*(a-2*c)

    ans =

    5 8 3
    13 5 -6

    no 4.c)
    >> b-[2 2;1 -2]

    ans =

    0 0
    0 0

    >> x=[0 0;0 0]

    x =

    0 0
    0 0

    >> 2*x+[2 2;1 -2]

    ans =

    2 2
    1 -2

    no 5.c)

    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]

    a =

    2
    1

    b =

    3 4

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    jawab
    >> b*a

    ans =

    10

    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)

    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (tidak bisa di kali kan karena beda ordo)

    2.f)
    >> [2 0;2 3]*[3;1]

    ans =

    6
    9

  45. Nama : Hampron Triandoko
    NIM : 10.11.4529
    Kelas : M

    I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]

    ans =

    7 4 -1
    10 4 4
    2 4 0

    no 1.f)
    >> x=[1;3;0]-[2;2;1]

    x =

    -1
    1
    -1

    >> y=[4;1;0]

    y =

    4
    1

    >> x+y

    ans =

    3
    2
    -1

    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]

    u =

    2
    2
    5

    >> v=[0;1;2]

    v =

    1
    2

    >> u+v

    ans =

    2
    3
    7

    no 3.e)
    >> a=[1 0 -1;1 1 2]

    a =

    1 0 -1
    1 1 2

    >> b=[2 2;1 -2]

    b =

    2 2
    1 -2

    >> c=[1 1 0;2 1 0]

    c =

    1 1 0
    2 1 0

    >> 2*c-3*(a-2*c)

    ans =

    5 8 3
    13 5 -6

    no 4.c)
    >> b-[2 2;1 -2]

    ans =

    0 0
    0 0

    >> x=[0 0;0 0]

    x =

    0 0
    0 0

    >> 2*x+[2 2;1 -2]

    ans =

    2 2
    1 -2

    no 5.c)

    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]

    a =

    2
    1

    b =

    3 4

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    jawab
    >> b*a

    ans =

    10

    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (a+b itu beda sizenya)

    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (beda size g bisa)

    2.f)
    >> [2 0;2 3]*[3;1]

    ans =

    6
    9

  46. Nama : Hampron Triandoko
    NIM : 10.11.4529
    Kelas : M

    I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]

    ans =

    7 4 -1
    10 4 4
    2 4 0

    no 1.f)
    >> x=[1;3;0]-[2;2;1]

    x =

    -1
    1
    -1

    >> y=[4;1;0]

    y =

    4
    1

    >> x+y

    ans =

    3
    2
    -1

    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]

    u =

    2
    2
    5

    >> v=[0;1;2]

    v =

    1
    2

    >> u+v

    ans =

    2
    3
    7

    no 3.e)
    >> a=[1 0 -1;1 1 2]

    a =

    1 0 -1
    1 1 2

    >> b=[2 2;1 -2]

    b =

    2 2
    1 -2

    >> c=[1 1 0;2 1 0]

    c =

    1 1 0
    2 1 0

    >> 2*c-3*(a-2*c)

    ans =

    5 8 3
    13 5 -6

    no 4.c)
    >> b-[2 2;1 -2]

    ans =

    0 0
    0 0

    >> x=[0 0;0 0]

    x =

    0 0
    0 0

    >> 2*x+[2 2;1 -2]

    ans =

    2 2
    1 -2

    no 5.c)

    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]

    a =

    2
    1

    b =

    3 4

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    jawab
    >> b*a

    ans =

    10

    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (a+b itu beda sizenya)

    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (beda size g bisa)

    2.f)
    >> [2 0;2 3]*[3;1]

    ans =

    6
    9

  47. Nama : Hampron Triandoko
    NIM : 10.11.4529

    I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]

    ans =

    7 4 -1
    10 4 4
    2 4 0

    no 1.f)
    >> x=[1;3;0]-[2;2;1]

    x =

    -1
    1
    -1

    >> y=[4;1;0]

    y =

    4
    1

    >> x+y

    ans =

    3
    2
    -1

    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]

    u =

    2
    2
    5

    >> v=[0;1;2]

    v =

    1
    2

    >> u+v

    ans =

    2
    3
    7

    no 3.e)
    >> a=[1 0 -1;1 1 2]

    a =

    1 0 -1
    1 1 2

    >> b=[2 2;1 -2]

    b =

    2 2
    1 -2

    >> c=[1 1 0;2 1 0]

    c =

    1 1 0
    2 1 0

    >> 2*c-3*(a-2*c)

    ans =

    5 8 3
    13 5 -6

    no 4.c)
    >> b-[2 2;1 -2]

    ans =

    0 0
    0 0

    >> x=[0 0;0 0]

    x =

    0 0
    0 0

    >> 2*x+[2 2;1 -2]

    ans =

    2 2
    1 -2

    no 5.c)

    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]

    a =

    2
    1

    b =

    3 4

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    jawab
    >> b*a

    ans =

    10

    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (a+b itu beda sizenya)

    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (beda size g bisa)

    2.f)
    >> [2 0;2 3]*[3;1]

    ans =

    6
    9

  48. nama: maulana jaya ramadlon
    NIM: 10.11.4490
    Kelas: S1.TI.1M

    I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]

    ans =

    7 4 -1
    10 4 4
    2 4 0

    no 1.f)
    >> x=[1;3;0]-[2;2;1]

    x =

    -1
    1
    -1

    >> y=[4;1;0]

    y =

    4
    1

    >> x+y

    ans =

    3
    2
    -1

    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]

    u =

    2
    2
    5

    >> v=[0;1;2]

    v =

    1
    2

    >> u+v

    ans =

    2
    3
    7

    no 3.e)
    >> a=[1 0 -1;1 1 2]

    a =

    1 0 -1
    1 1 2

    >> b=[2 2;1 -2]

    b =

    2 2
    1 -2

    >> c=[1 1 0;2 1 0]

    c =

    1 1 0
    2 1 0

    >> 2*c-3*(a-2*c)

    ans =

    5 8 3
    13 5 -6

    no 4.c)
    >> b-[2 2;1 -2]

    ans =

    0 0
    0 0

    >> x=[0 0;0 0]

    x =

    0 0
    0 0

    >> 2*x+[2 2;1 -2]

    ans =

    2 2
    1 -2

    no 5.c)

    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]

    a =

    2
    1

    b =

    3 4

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    jawab
    >> b*a

    ans =

    10

    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)

    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (tidak bisa di kali kan karena beda ordo)

    2.f)
    >> [2 0;2 3]*[3;1]

    ans =

    6
    9

  49. Nama: Catur Prio Pambudi
    Nim : 10.11.4491

    I.1.e

    >> [1 2 -1; 0 0 2; 0 2 -2]+2*[3 1 0; 5 2 1; 1 1 1]

    ans =

    7 4 -1
    10 4 4
    2 4 0

    I.1.f

    >> x=[1; 3; 0]-[2; 2; 1]

    x =

    -1
    1
    -1

    >> y=[4; 1; 0]

    y =

    4
    1
    0

    >> x+y

    ans =

    3
    2
    -1

    I.2.e

    >> u=[-2; 2; 3]+2*[2; 0; 1]

    u =

    2
    2
    5

    >> v=[0; 1; 2]

    v =

    0
    1
    2

    >> u+v

    ans =

    2
    3
    7

    I.3.e

    >> a=[1 0 -1; 1 1 2]

    a =

    1 0 -1
    1 1 2

    >> b=[2 2; 1 -2]

    b =

    2 2
    1 -2

    >> c=[1 1 0; 2 1 0]

    c =

    1 1 0
    2 1 0

    >> 2*c-3*(a-2*c)

    ans =

    5 8 3
    13 5 -6

    I.4.c

    >> b-[2 2; 1 -2]

    ans =

    0 0
    0 0

    >> x=[0 0; 0 0]

    x =

    0 0
    0 0

    >> 2*x+[2 2;1 -2]

    ans =

    2 2
    1 -2

    II.1.g

    >> a=[2; 1], b=[3 4], c=[2 1+i; 0 -1]

    a =

    2
    1

    b =

    3 4

    c =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    >> b*a

    ans =

    10

    II.2.f

    >> [2 0; 2 3]*[3; 1]

    ans =

    6
    9

  50. Nama : Hampron Triandoko
    NIM : 10.11.4529
    I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]

    ans =

    7 4 -1
    10 4 4
    2 4 0

    no 1.f)
    >> x=[1;3;0]-[2;2;1]

    x =

    -1
    1
    -1

    >> y=[4;1;0]

    y =

    4
    1

    >> x+y

    ans =

    3
    2
    -1

    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]

    u =

    2
    2
    5

    >> v=[0;1;2]

    v =

    1
    2

    >> u+v

    ans =

    2
    3
    7

    no 3.e)
    >> a=[1 0 -1;1 1 2]

    a =

    1 0 -1
    1 1 2

    >> b=[2 2;1 -2]

    b =

    2 2
    1 -2

    >> c=[1 1 0;2 1 0]

    c =

    1 1 0
    2 1 0

    >> 2*c-3*(a-2*c)

    ans =

    5 8 3
    13 5 -6

    no 4.c)
    >> b-[2 2;1 -2]

    ans =

    0 0
    0 0

    >> x=[0 0;0 0]

    x =

    0 0
    0 0

    >> 2*x+[2 2;1 -2]

    ans =

    2 2
    1 -2

    no 5.c)

    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]

    a =

    2
    1

    b =

    3 4

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    jawab
    >> b*a

    ans =

    10

    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (a+b itu beda sizenya)

    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (beda size g bisa)

    2.f)
    >> [2 0;2 3]*[3;1]

    ans =

    6
    9

  51. Nama : Lisman Prihadi
    NIM : 10.11.4493
    Kelas : SI TI 1M

    I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]

    ans =
    7 4 -1
    10 4 4
    2 4 0

    no 1.f)

    >> x=[1;3;0]-[2;2;1]
    x =
    -1
    1
    -1
    >> y=[4;1;0]
    y =
    4
    1
    >> x+y
    ans =
    3
    2
    -1

    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]
    u =
    2
    2
    5
    >> v=[0;1;2]
    v =
    1
    2
    >> u+v
    ans =
    2
    3
    7

    no 3.e)

    >> a=[1 0 -1;1 1 2]

    a =
    1 0 -1
    1 1 2
    >> b=[2 2;1 -2]
    b =
    2 2
    1 -2
    >> c=[1 1 0;2 1 0]
    c =
    1 1 0
    2 1 0
    >> 2*c-3*(a-2*c)
    ans =
    5 8 3
    13 5 -6
    no 4.c)
    >> b-[2 2;1 -2]
    ans =
    0 0
    0 0
    >> x=[0 0;0 0]
    x =
    0 0
    0 0
    >> 2*x+[2 2;1 -2]
    ans =
    2 2
    1 -2

    no 5.c)

    II

    1.g)

    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]
    a =
    2
    1
    b =
    3 4
    C =
    2.0000 1.0000 + 1.0000i
    0 -1.0000
    jawab
    >> b*a
    ans =
    10

    1.h)

    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)

    2.e)

    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (tidak bisa di kali kan karena beda ordo)

    2.f)

    >> [2 0;2 3]*[3;1]
    ans =
    6
    9

  52. Nama : Hampron Triandoko
    NIM : 10.11.4529
    Kelas : M
    I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]

    ans =

    7 4 -1
    10 4 4
    2 4 0

    no 1.f)
    >> x=[1;3;0]-[2;2;1]

    x =

    -1
    1
    -1

    >> y=[4;1;0]

    y =

    4
    1

    >> x+y

    ans =

    3
    2
    -1

    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]

    u =

    2
    2
    5

    >> v=[0;1;2]

    v =

    1
    2

    >> u+v

    ans =

    2
    3
    7

    no 3.e)
    >> a=[1 0 -1;1 1 2]

    a =

    1 0 -1
    1 1 2

    >> b=[2 2;1 -2]

    b =

    2 2
    1 -2

    >> c=[1 1 0;2 1 0]

    c =

    1 1 0
    2 1 0

    >> 2*c-3*(a-2*c)

    ans =

    5 8 3
    13 5 -6

    no 4.c)
    >> b-[2 2;1 -2]

    ans =

    0 0
    0 0

    >> x=[0 0;0 0]

    x =

    0 0
    0 0

    >> 2*x+[2 2;1 -2]

    ans =

    2 2
    1 -2

    no 5.c)

    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]

    a =

    2
    1

    b =

    3 4

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    jawab
    >> b*a

    ans =

    10

    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (a+b itu beda sizenya)

    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (beda size g bisa)

    2.f)
    >> [2 0;2 3]*[3;1]

    ans =

    6
    9

  53. Nama : Akhmad Nur Faosin
    Kelas : S1 TI 1M
    NIM : 10.11.4509

    I.
    1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]

    ans =

    7 4 -1
    10 4 4
    2 4 0

    1.f)
    >> x=[1;3;0]-[2;2;1]

    x =

    -1
    1
    -1

    >> y=[4;1;0]

    y =

    4
    1

    >> x+y

    ans =

    3
    2
    -1

    2.e)
    >> u=[-2;2;3]+2*[2;0;1]

    u =

    2
    2
    5

    >> v=[0;1;2]

    v =

    1
    2

    >> u+v

    ans =

    2
    3
    7

    3.e)
    >> a=[1 0 -1;1 1 2]

    a =

    1 0 -1
    1 1 2

    >> b=[2 2;1 -2]

    b =

    2 2
    1 -2

    >> c=[1 1 0;2 1 0]

    c =

    1 1 0
    2 1 0

    >> 2*c-3*(a-2*c)

    ans =

    5 8 3
    13 5 -6

    4.c)
    >> b-[2 2;1 -2]

    ans =

    0 0
    0 0

    >> x=[0 0;0 0]

    x =

    0 0
    0 0

    >> 2*x+[2 2;1 -2]

    ans =

    2 2
    1 -2

    no 5.c)

    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]

    a =

    2
    1

    b =

    3 4

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    jawab
    >> b*a

    ans =

    10

    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.

    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.

    2.f)
    >> [2 0;2 3]*[3;1]

    ans =

    6
    9

  54. Nama : Hampron Triandoko
    NIM : 10.11.4529
    Kelas : M

    I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]

    ans =

    7 4 -1
    10 4 4
    2 4 0

    no 1.f)
    >> x=[1;3;0]-[2;2;1]

    x =

    -1
    1
    -1

    >> y=[4;1;0]

    y =

    4
    1

    >> x+y

    ans =

    3
    2
    -1

    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]

    u =

    2
    2
    5

    >> v=[0;1;2]

    v =

    1
    2

    >> u+v

    ans =

    2
    3
    7

    no 3.e)
    >> a=[1 0 -1;1 1 2]

    a =

    1 0 -1
    1 1 2

    >> b=[2 2;1 -2]

    b =

    2 2
    1 -2

    >> c=[1 1 0;2 1 0]

    c =

    1 1 0
    2 1 0

    >> 2*c-3*(a-2*c)

    ans =

    5 8 3
    13 5 -6

    no 4.c)
    >> b-[2 2;1 -2]

    ans =

    0 0
    0 0

    >> x=[0 0;0 0]

    x =

    0 0
    0 0

    >> 2*x+[2 2;1 -2]

    ans =

    2 2
    1 -2

    no 5.c)

    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]

    a =

    2
    1

    b =

    3 4

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    jawab
    >> b*a

    ans =

    10

    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (a+b itu beda sizenya)

    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (beda size g bisa)

    2.f)
    >> [2 0;2 3]*[3;1]

    ans =

    6
    9

  55. Nama : Septian Dwi C
    NIM : 10.11.4512
    Kelas : S1 TI 1M

    I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]
    ans =
    7 4 -1
    10 4 4
    2 4 0
    no 1.f)
    >> x=[1;3;0]-[2;2;1]
    x =
    -1
    1
    -1
    >> y=[4;1;0]
    y =
    4
    1
    0
    >> x+y
    ans =
    3
    2
    -1
    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]
    u =
    2
    2
    5
    >> v=[0;1;2]
    v =
    0
    1
    2
    >> u+v
    ans =
    2
    3
    7
    no 3.e)
    >> a=[1 0 -1;1 1 2]
    a =
    1 0 -1
    1 1 2
    >> b=[2 2;1 -2]
    b =
    2 2
    1 -2
    >> c=[1 1 0;2 1 0]
    c =
    1 1 0
    2 1 0
    >> 2*c-3*(a-2*c)
    ans =
    5 8 3
    13 5 -6
    no 4.c)
    >> b-[2 2;1 -2]
    ans =
    0 0
    0 0
    >> x=[0 0;0 0]
    x =
    0 0
    0 0
    >> 2*x+[2 2;1 -2]
    ans =
    2 2
    1 -2
    no 5.c)
    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]
    a =
    2
    1
    b =
    3 4
    C =
    2.0000 1.0000 + 1.0000i
    0 -1.0000
    jawab
    >> b*a
    ans =
    10
    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)
    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (tidak bisa di kali kan karena beda ordo)
    2.f)
    >> [2 0;2 3]*[3;1]
    ans =
    6
    9

  56. Nama : Septian Dwi Cahyono
    Kelas : S1 TI 1M
    NIM : 10.11.4512
    I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]
    ans =
    7 4 -1
    10 4 4
    2 4 0
    no 1.f)
    >> x=[1;3;0]-[2;2;1]
    x =
    -1
    1
    -1
    >> y=[4;1;0]
    y =
    4
    1
    0
    >> x+y
    ans =
    3
    2
    -1
    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]
    u =
    2
    2
    5
    >> v=[0;1;2]
    v =
    0
    1
    2
    >> u+v
    ans =
    2
    3
    7
    no 3.e)
    >> a=[1 0 -1;1 1 2]
    a =
    1 0 -1
    1 1 2
    >> b=[2 2;1 -2]
    b =
    2 2
    1 -2
    >> c=[1 1 0;2 1 0]
    c =
    1 1 0
    2 1 0
    >> 2*c-3*(a-2*c)
    ans =
    5 8 3
    13 5 -6
    no 4.c)
    >> b-[2 2;1 -2]
    ans =
    0 0
    0 0
    >> x=[0 0;0 0]
    x =
    0 0
    0 0
    >> 2*x+[2 2;1 -2]
    ans =
    2 2
    1 -2
    no 5.c)
    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]
    a =
    2
    1
    b =
    3 4
    C =
    2.0000 1.0000 + 1.0000i
    0 -1.0000
    jawab
    >> b*a
    ans =
    10
    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)
    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (tidak bisa di kali kan karena beda ordo)
    2.f)
    >> [2 0;2 3]*[3;1]
    ans =
    6
    9

  57. Nama : Hampron Triandoko
    NIM : 10.11.4529
    Kelas : M
    I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]

    ans =

    7 4 -1
    10 4 4
    2 4 0

    no 1.f)
    >> x=[1;3;0]-[2;2;1]

    x =

    -1
    1
    -1

    >> y=[4;1;0]

    y =

    4
    1

    >> x+y

    ans =

    3
    2
    -1

    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]

    u =

    2
    2
    5

    >> v=[0;1;2]

    v =

    1
    2

    >> u+v

    ans =

    2
    3
    7

    no 3.e)
    >> a=[1 0 -1;1 1 2]

    a =

    1 0 -1
    1 1 2

    >> b=[2 2;1 -2]

    b =

    2 2
    1 -2

    >> c=[1 1 0;2 1 0]

    c =

    1 1 0
    2 1 0

    >> 2*c-3*(a-2*c)

    ans =

    5 8 3
    13 5 -6

    no 4.c)
    >> b-[2 2;1 -2]

    ans =

    0 0
    0 0

    >> x=[0 0;0 0]

    x =

    0 0
    0 0

    >> 2*x+[2 2;1 -2]

    ans =

    2 2
    1 -2

    no 5.c)

    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]

    a =

    2
    1

    b =

    3 4

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    jawab
    >> b*a

    ans =

    10

    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (a+b itu beda sizenya)

    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (beda size g bisa)

    2.f)
    >> [2 0;2 3]*[3;1]

    ans =

    6
    9

  58. Nama : Lisman Prihadi
    Kelas :S1 TI 1M
    NIM : 10.11.4493

    I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]

    ans =

    7 4 -1
    10 4 4
    2 4 0

    no 1.f)
    >> x=[1;3;0]-[2;2;1]

    x =

    -1
    1
    -1

    >> y=[4;1;0]

    y =

    4
    1

    >> x+y

    ans =

    3
    2
    -1

    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]

    u =

    2
    2
    5

    >> v=[0;1;2]

    v =

    1
    2

    >> u+v

    ans =

    2
    3
    7

    no 3.e)
    >> a=[1 0 -1;1 1 2]

    a =

    1 0 -1
    1 1 2

    >> b=[2 2;1 -2]

    b =

    2 2
    1 -2

    >> c=[1 1 0;2 1 0]

    c =

    1 1 0
    2 1 0

    >> 2*c-3*(a-2*c)

    ans =

    5 8 3
    13 5 -6

    no 4.c)
    >> b-[2 2;1 -2]

    ans =

    0 0
    0 0

    >> x=[0 0;0 0]

    x =

    0 0
    0 0

    >> 2*x+[2 2;1 -2]

    ans =

    2 2
    1 -2

    no 5.c)

    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]

    a =

    2
    1

    b =

    3 4

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    jawab
    >> b*a

    ans =

    10

    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)

    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (tidak bisa di kali kan karena beda ordo)

    2.f)
    >> [2 0;2 3]*[3;1]

    ans =

    6
    9

  59. NIM : 10.11.4512

    I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]

    ans =

    7 4 -1
    10 4 4
    2 4 0

    no 1.f)
    >> x=[1;3;0]-[2;2;1]

    x =

    -1
    1
    -1

    >> y=[4;1;0]

    y =

    4
    1

    >> x+y

    ans =

    3
    2
    -1

    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]

    u =

    2
    2
    5

    >> v=[0;1;2]

    v =

    1
    2

    >> u+v

    ans =

    2
    3
    7

    no 3.e)
    >> a=[1 0 -1;1 1 2]

    a =

    1 0 -1
    1 1 2

    >> b=[2 2;1 -2]

    b =

    2 2
    1 -2

    >> c=[1 1 0;2 1 0]

    c =

    1 1 0
    2 1 0

    >> 2*c-3*(a-2*c)

    ans =

    5 8 3
    13 5 -6

    no 4.c)
    >> b-[2 2;1 -2]

    ans =

    0 0
    0 0

    >> x=[0 0;0 0]

    x =

    0 0
    0 0

    >> 2*x+[2 2;1 -2]

    ans =

    2 2
    1 -2

    no 5.c)

    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]

    a =

    2
    1

    b =

    3 4

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    jawab
    >> b*a

    ans =

    10

    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)

    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (tidak bisa di kali kan karena beda ordo)

    2.f)
    >> [2 0;2 3]*[3;1]

    ans =

    6
    9

  60. Nama: Lisman Prihadi
    Kelas:S1 TI 1M
    NIM : 10.11.4493

    I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]

    ans =

    7 4 -1
    10 4 4
    2 4 0

    no 1.f)
    >> x=[1;3;0]-[2;2;1]

    x =

    -1
    1
    -1

    >> y=[4;1;0]

    y =

    4
    1

    >> x+y

    ans =

    3
    2
    -1

    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]

    u =

    2
    2
    5

    >> v=[0;1;2]

    v =

    1
    2

    >> u+v

    ans =

    2
    3
    7

    no 3.e)
    >> a=[1 0 -1;1 1 2]

    a =

    1 0 -1
    1 1 2

    >> b=[2 2;1 -2]

    b =

    2 2
    1 -2

    >> c=[1 1 0;2 1 0]

    c =

    1 1 0
    2 1 0

    >> 2*c-3*(a-2*c)

    ans =

    5 8 3
    13 5 -6

    no 4.c)
    >> b-[2 2;1 -2]

    ans =

    0 0
    0 0

    >> x=[0 0;0 0]

    x =

    0 0
    0 0

    >> 2*x+[2 2;1 -2]

    ans =

    2 2
    1 -2

    no 5.c)

    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]

    a =

    2
    1

    b =

    3 4

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    jawab
    >> b*a

    ans =

    10

    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)

    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (tidak bisa di kali kan karena beda ordo)

    2.f)
    >> [2 0;2 3]*[3;1]

    ans =

    6
    9

  61. Nama: Yudi Kurniawan
    Kelas: s1 TI 1M
    NIM: 10.11.4541

    I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]

    ans =

    7 4 -1
    10 4 4
    2 4 0

    no 1.f)
    >> x=[1;3;0]-[2;2;1]

    x =

    -1
    1
    -1

    >> y=[4;1;0]

    y =

    4
    1

    >> x+y

    ans =

    3
    2
    -1

    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]

    u =

    2
    2
    5

    >> v=[0;1;2]

    v =

    1
    2

    >> u+v

    ans =

    2
    3
    7

    no 3.e)
    >> a=[1 0 -1;1 1 2]

    a =

    1 0 -1
    1 1 2

    >> b=[2 2;1 -2]

    b =

    2 2
    1 -2

    >> c=[1 1 0;2 1 0]

    c =

    1 1 0
    2 1 0

    >> 2*c-3*(a-2*c)

    ans =

    5 8 3
    13 5 -6

    no 4.c)
    >> b-[2 2;1 -2]

    ans =

    0 0
    0 0

    >> x=[0 0;0 0]

    x =

    0 0
    0 0

    >> 2*x+[2 2;1 -2]

    ans =

    2 2
    1 -2

    no 5.c)

    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]

    a =

    2
    1

    b =

    3 4

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    jawab
    >> b*a

    ans =

    10

    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)

    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (tidak bisa di kali kan karena beda ordo)

    2.f)
    >> [2 0;2 3]*[3;1]

    ans =

    6
    9

  62. Nama: Bima Aditya Rahayu
    Kelas: S1 TI 1M
    NIM : 10.11.4476

    I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]

    ans =

    7 4 -1
    10 4 4
    2 4 0

    no 1.f)
    >> x=[1;3;0]-[2;2;1]

    x =

    -1
    1
    -1

    >> y=[4;1;0]

    y =

    4
    1

    >> x+y

    ans =

    3
    2
    -1

    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]

    u =

    2
    2
    5

    >> v=[0;1;2]

    v =

    1
    2

    >> u+v

    ans =

    2
    3
    7

    no 3.e)
    >> a=[1 0 -1;1 1 2]

    a =

    1 0 -1
    1 1 2

    >> b=[2 2;1 -2]

    b =

    2 2
    1 -2

    >> c=[1 1 0;2 1 0]

    c =

    1 1 0
    2 1 0

    >> 2*c-3*(a-2*c)

    ans =

    5 8 3
    13 5 -6

    no 4.c)
    >> b-[2 2;1 -2]

    ans =

    0 0
    0 0

    >> x=[0 0;0 0]

    x =

    0 0
    0 0

    >> 2*x+[2 2;1 -2]

    ans =

    2 2
    1 -2

    no 5.c)

    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]

    a =

    2
    1

    b =

    3 4

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    jawab
    >> b*a

    ans =

    10

    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)

    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (tidak bisa di kali kan karena beda ordo)

    2.f)
    >> [2 0;2 3]*[3;1]

    ans =

    6
    9

  63. Nama : BANTER PRAYOGA
    Kelas: S1 TI 1M
    NIM : 10.11.4470

    I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]

    ans =

    7 4 -1
    10 4 4
    2 4 0

    no 1.f)
    >> x=[1;3;0]-[2;2;1]

    x =

    -1
    1
    -1

    >> y=[4;1;0]

    y =

    4
    1

    >> x+y

    ans =

    3
    2
    -1

    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]

    u =

    2
    2
    5

    >> v=[0;1;2]

    v =

    1
    2

    >> u+v

    ans =

    2
    3
    7

    no 3.e)
    >> a=[1 0 -1;1 1 2]

    a =

    1 0 -1
    1 1 2

    >> b=[2 2;1 -2]

    b =

    2 2
    1 -2

    >> c=[1 1 0;2 1 0]

    c =

    1 1 0
    2 1 0

    >> 2*c-3*(a-2*c)

    ans =

    5 8 3
    13 5 -6

    no 4.c)
    >> b-[2 2;1 -2]

    ans =

    0 0
    0 0

    >> x=[0 0;0 0]

    x =

    0 0
    0 0

    >> 2*x+[2 2;1 -2]

    ans =

    2 2
    1 -2

    no 5.c)

    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]

    a =

    2
    1

    b =

    3 4

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    jawab
    >> b*a

    ans =

    10

    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)

    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (tidak bisa di kali kan karena beda ordo)

    2.f)
    >> [2 0;2 3]*[3;1]

    ans =

    6
    9

  64. Nama : Hampron Triandoko
    NIM : 10.11.4529
    Kelas : M

    I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]

    ans =

    7 4 -1
    10 4 4
    2 4 0

    no 1.f)
    >> x=[1;3;0]-[2;2;1]

    x =

    -1
    1
    -1

    >> y=[4;1;0]

    y =

    4
    1

    >> x+y

    ans =

    3
    2
    -1

    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]

    u =

    2
    2
    5

    >> v=[0;1;2]

    v =

    1
    2

    >> u+v

    ans =

    2
    3
    7

    no 3.e)
    >> a=[1 0 -1;1 1 2]

    a =

    1 0 -1
    1 1 2

    >> b=[2 2;1 -2]

    b =

    2 2
    1 -2

    >> c=[1 1 0;2 1 0]

    c =

    1 1 0
    2 1 0

    >> 2*c-3*(a-2*c)

    ans =

    5 8 3
    13 5 -6

    no 4.c)
    >> b-[2 2;1 -2]

    ans =

    0 0
    0 0

    >> x=[0 0;0 0]

    x =

    0 0
    0 0

    >> 2*x+[2 2;1 -2]

    ans =

    2 2
    1 -2

    no 5.c)

    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]

    a =

    2
    1

    b =

    3 4

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    jawab
    >> b*a

    ans =

    10

    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (a+b itu beda sizenya)

    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (beda size g bisa)

    2.f)
    >> [2 0;2 3]*[3;1]

    ans =

    6
    9

  65. Nama: Nur Cholis
    Kelas:S1 TI 1M
    NIM: 10.11.4545

    I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]

    ans =

    7 4 -1
    10 4 4
    2 4 0

    no 1.f)
    >> x=[1;3;0]-[2;2;1]

    x =

    -1
    1
    -1

    >> y=[4;1;0]

    y =

    4
    1

    >> x+y

    ans =

    3
    2
    -1

    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]

    u =

    2
    2
    5

    >> v=[0;1;2]

    v =

    1
    2

    >> u+v

    ans =

    2
    3
    7

    no 3.e)
    >> a=[1 0 -1;1 1 2]

    a =

    1 0 -1
    1 1 2

    >> b=[2 2;1 -2]

    b =

    2 2
    1 -2

    >> c=[1 1 0;2 1 0]

    c =

    1 1 0
    2 1 0

    >> 2*c-3*(a-2*c)

    ans =

    5 8 3
    13 5 -6

    no 4.c)
    >> b-[2 2;1 -2]

    ans =

    0 0
    0 0

    >> x=[0 0;0 0]

    x =

    0 0
    0 0

    >> 2*x+[2 2;1 -2]

    ans =

    2 2
    1 -2

    no 5.c)

    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]

    a =

    2
    1

    b =

    3 4

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    jawab
    >> b*a

    ans =

    10

    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)

    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (tidak bisa di kali kan karena beda ordo)

    2.f)
    >> [2 0;2 3]*[3;1]

    ans =

    6
    9

  66. Nama: Wahyu Adi Setyawan
    Kelas: S1 TI 1M
    NIM: 10.11.4478

    I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]

    ans =

    7 4 -1
    10 4 4
    2 4 0

    no 1.f)
    >> x=[1;3;0]-[2;2;1]

    x =

    -1
    1
    -1

    >> y=[4;1;0]

    y =

    4
    1

    >> x+y

    ans =

    3
    2
    -1

    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]

    u =

    2
    2
    5

    >> v=[0;1;2]

    v =

    1
    2

    >> u+v

    ans =

    2
    3
    7

    no 3.e)
    >> a=[1 0 -1;1 1 2]

    a =

    1 0 -1
    1 1 2

    >> b=[2 2;1 -2]

    b =

    2 2
    1 -2

    >> c=[1 1 0;2 1 0]

    c =

    1 1 0
    2 1 0

    >> 2*c-3*(a-2*c)

    ans =

    5 8 3
    13 5 -6

    no 4.c)
    >> b-[2 2;1 -2]

    ans =

    0 0
    0 0

    >> x=[0 0;0 0]

    x =

    0 0
    0 0

    >> 2*x+[2 2;1 -2]

    ans =

    2 2
    1 -2

    no 5.c)

    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]

    a =

    2
    1

    b =

    3 4

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    jawab
    >> b*a

    ans =

    10

    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)

    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (tidak bisa di kali kan karena beda ordo)

    2.f)
    >> [2 0;2 3]*[3;1]

    ans =

    6
    9

  67. nama :RIAN HIDAYAH WIHARJA
    NIM:10.11.4467

    I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]
    ans =
    7 4 -1
    10 4 4
    2 4 0
    no 1.f)
    >> x=[1;3;0]-[2;2;1]
    x =
    -1
    1
    -1
    >> y=[4;1;0]
    y =
    4
    1
    0
    >> x+y
    ans =
    3
    2
    -1
    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]
    u =
    2
    2
    5
    >> v=[0;1;2]
    v =
    0
    1
    2
    >> u+v
    ans =
    2
    3
    7
    no 3.e)
    >> a=[1 0 -1;1 1 2]
    a =
    1 0 -1
    1 1 2
    >> b=[2 2;1 -2]
    b =
    2 2
    1 -2
    >> c=[1 1 0;2 1 0]
    c =
    1 1 0
    2 1 0
    >> 2*c-3*(a-2*c)
    ans =
    5 8 3
    13 5 -6
    no 4.c)
    >> b-[2 2;1 -2]
    ans =
    0 0
    0 0
    >> x=[0 0;0 0]
    x =
    0 0
    0 0
    >> 2*x+[2 2;1 -2]
    ans =
    2 2
    1 -2
    no 5.c)
    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]
    a =
    2
    1
    b =
    3 4
    C =
    2.0000 1.0000 + 1.0000i
    0 -1.0000
    jawab
    >> b*a
    ans =
    10
    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)
    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (tidak bisa di kali kan karena beda ordo)
    2.f)
    >> [2 0;2 3]*[3;1]
    ans =
    6
    9

  68. NIM : 10.11.4512

    I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]
    ans =
    7 4 -1
    10 4 4
    2 4 0
    no 1.f)
    >> x=[1;3;0]-[2;2;1]
    x =
    -1
    1
    -1
    >> y=[4;1;0]
    y =
    4
    1
    0
    >> x+y
    ans =
    3
    2
    -1
    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]
    u =
    2
    2
    5
    >> v=[0;1;2]
    v =
    0
    1
    2
    >> u+v
    ans =
    2
    3
    7
    no 3.e)
    >> a=[1 0 -1;1 1 2]
    a =
    1 0 -1
    1 1 2
    >> b=[2 2;1 -2]
    b =
    2 2
    1 -2
    >> c=[1 1 0;2 1 0]
    c =
    1 1 0
    2 1 0
    >> 2*c-3*(a-2*c)
    ans =
    5 8 3
    13 5 -6
    no 4.c)
    >> b-[2 2;1 -2]
    ans =
    0 0
    0 0
    >> x=[0 0;0 0]
    x =
    0 0
    0 0
    >> 2*x+[2 2;1 -2]
    ans =
    2 2
    1 -2
    no 5.c)
    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]
    a =
    2
    1
    b =
    3 4
    C =
    2.0000 1.0000 + 1.0000i
    0 -1.0000
    jawab
    >> b*a
    ans =
    10
    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)
    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (tidak bisa di kali kan karena beda ordo)
    2.f)
    >> [2 0;2 3]*[3;1]
    ans =
    6
    9

  69. NIM: 10.11.4512

    I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]
    ans =
    7 4 -1
    10 4 4
    2 4 0
    no 1.f)
    >> x=[1;3;0]-[2;2;1]
    x =
    -1
    1
    -1
    >> y=[4;1;0]
    y =
    4
    1
    0
    >> x+y
    ans =
    3
    2
    -1
    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]
    u =
    2
    2
    5
    >> v=[0;1;2]
    v =
    0
    1
    2
    >> u+v
    ans =
    2
    3
    7
    no 3.e)
    >> a=[1 0 -1;1 1 2]
    a =
    1 0 -1
    1 1 2
    >> b=[2 2;1 -2]
    b =
    2 2
    1 -2
    >> c=[1 1 0;2 1 0]
    c =
    1 1 0
    2 1 0
    >> 2*c-3*(a-2*c)
    ans =
    5 8 3
    13 5 -6
    no 4.c)
    >> b-[2 2;1 -2]
    ans =
    0 0
    0 0
    >> x=[0 0;0 0]
    x =
    0 0
    0 0
    >> 2*x+[2 2;1 -2]
    ans =
    2 2
    1 -2
    no 5.c)
    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]
    a =
    2
    1
    b =
    3 4
    C =
    2.0000 1.0000 + 1.0000i
    0 -1.0000
    jawab
    >> b*a
    ans =
    10
    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)
    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (tidak bisa di kali kan karena beda ordo)
    2.f)
    >> [2 0;2 3]*[3;1]
    ans =
    6
    9

  70. nama: Septian Dwi Cahyono
    NIM:10.11.4512
    kelas: S1 TI 1M

    I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]
    ans =
    7 4 -1
    10 4 4
    2 4 0
    no 1.f)
    >> x=[1;3;0]-[2;2;1]
    x =
    -1
    1
    -1
    >> y=[4;1;0]
    y =
    4
    1
    0
    >> x+y
    ans =
    3
    2
    -1
    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]
    u =
    2
    2
    5
    >> v=[0;1;2]
    v =
    0
    1
    2
    >> u+v
    ans =
    2
    3
    7
    no 3.e)
    >> a=[1 0 -1;1 1 2]
    a =
    1 0 -1
    1 1 2
    >> b=[2 2;1 -2]
    b =
    2 2
    1 -2
    >> c=[1 1 0;2 1 0]
    c =
    1 1 0
    2 1 0
    >> 2*c-3*(a-2*c)
    ans =
    5 8 3
    13 5 -6
    no 4.c)
    >> b-[2 2;1 -2]
    ans =
    0 0
    0 0
    >> x=[0 0;0 0]
    x =
    0 0
    0 0
    >> 2*x+[2 2;1 -2]
    ans =
    2 2
    1 -2
    no 5.c)
    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]
    a =
    2
    1
    b =
    3 4
    C =
    2.0000 1.0000 + 1.0000i
    0 -1.0000
    jawab
    >> b*a
    ans =
    10
    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)
    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (tidak bisa di kali kan karena beda ordo)
    2.f)
    >> [2 0;2 3]*[3;1]
    ans =
    6
    9

  71. nama: Dody Dwi Sukmanto
    NIM: 10.11.4475
    kelas: S1 TI 1M

    I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]
    ans =
    7 4 -1
    10 4 4
    2 4 0
    no 1.f)
    >> x=[1;3;0]-[2;2;1]
    x =
    -1
    1
    -1
    >> y=[4;1;0]
    y =
    4
    1
    0
    >> x+y
    ans =
    3
    2
    -1
    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]
    u =
    2
    2
    5
    >> v=[0;1;2]
    v =
    0
    1
    2
    >> u+v
    ans =
    2
    3
    7
    no 3.e)
    >> a=[1 0 -1;1 1 2]
    a =
    1 0 -1
    1 1 2
    >> b=[2 2;1 -2]
    b =
    2 2
    1 -2
    >> c=[1 1 0;2 1 0]
    c =
    1 1 0
    2 1 0
    >> 2*c-3*(a-2*c)
    ans =
    5 8 3
    13 5 -6
    no 4.c)
    >> b-[2 2;1 -2]
    ans =
    0 0
    0 0
    >> x=[0 0;0 0]
    x =
    0 0
    0 0
    >> 2*x+[2 2;1 -2]
    ans =
    2 2
    1 -2
    no 5.c)
    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]
    a =
    2
    1
    b =
    3 4
    C =
    2.0000 1.0000 + 1.0000i
    0 -1.0000
    jawab
    >> b*a
    ans =
    10
    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)
    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (tidak bisa di kali kan karena beda ordo)
    2.f)
    >> [2 0;2 3]*[3;1]
    ans =
    6
    9

  72. Nama : Septian Dwi Cahyono
    NIM : 10.11.4512
    Kelas : S1 TI 1M
    I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]
    ans =
    7 4 -1
    10 4 4
    2 4 0
    no 1.f)
    >> x=[1;3;0]-[2;2;1]
    x =
    -1
    1
    -1
    >> y=[4;1;0]
    y =
    4
    1
    0
    >> x+y
    ans =
    3
    2
    -1
    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]
    u =
    2
    2
    5
    >> v=[0;1;2]
    v =
    0
    1
    2
    >> u+v
    ans =
    2
    3
    7
    no 3.e)
    >> a=[1 0 -1;1 1 2]
    a =
    1 0 -1
    1 1 2
    >> b=[2 2;1 -2]
    b =
    2 2
    1 -2
    >> c=[1 1 0;2 1 0]
    c =
    1 1 0
    2 1 0
    >> 2*c-3*(a-2*c)
    ans =
    5 8 3
    13 5 -6
    no 4.c)
    >> b-[2 2;1 -2]
    ans =
    0 0
    0 0
    >> x=[0 0;0 0]
    x =
    0 0
    0 0
    >> 2*x+[2 2;1 -2]
    ans =
    2 2
    1 -2
    no 5.c)
    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]
    a =
    2
    1
    b =
    3 4
    C =
    2.0000 1.0000 + 1.0000i
    0 -1.0000
    jawab
    >> b*a
    ans =
    10
    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)
    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (tidak bisa di kali kan karena beda ordo)
    2.f)
    >> [2 0;2 3]*[3;1]
    ans =
    6
    9

  73. Nama : Septian Dwi Cahyono
    NIM : 10.11.4512
    Kelas : S1 TI 1M

    I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]
    ans =
    7 4 -1
    10 4 4
    2 4 0
    no 1.f)
    >> x=[1;3;0]-[2;2;1]
    x =
    -1
    1
    -1
    >> y=[4;1;0]
    y =
    4
    1
    0
    >> x+y
    ans =
    3
    2
    -1
    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]
    u =
    2
    2
    5
    >> v=[0;1;2]
    v =
    0
    1
    2
    >> u+v
    ans =
    2
    3
    7
    no 3.e)
    >> a=[1 0 -1;1 1 2]
    a =
    1 0 -1
    1 1 2
    >> b=[2 2;1 -2]
    b =
    2 2
    1 -2
    >> c=[1 1 0;2 1 0]
    c =
    1 1 0
    2 1 0
    >> 2*c-3*(a-2*c)
    ans =
    5 8 3
    13 5 -6
    no 4.c)
    >> b-[2 2;1 -2]
    ans =
    0 0
    0 0
    >> x=[0 0;0 0]
    x =
    0 0
    0 0
    >> 2*x+[2 2;1 -2]
    ans =
    2 2
    1 -2
    no 5.c)
    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]
    a =
    2
    1
    b =
    3 4
    C =
    2.0000 1.0000 + 1.0000i
    0 -1.0000
    jawab
    >> b*a
    ans =
    10
    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)
    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (tidak bisa di kali kan karena beda ordo)
    2.f)
    >> [2 0;2 3]*[3;1]
    ans =
    6
    9

  74. Nama : Septian Dwi Cahyono
    NIM : 10.11.4512
    Kelas : S1 TI 1M

    I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]

    ans =

    7 4 -1
    10 4 4
    2 4 0

    no 1.f)
    >> x=[1;3;0]-[2;2;1]

    x =

    -1
    1
    -1

    >> y=[4;1;0]

    y =

    4
    1

    >> x+y

    ans =

    3
    2
    -1

    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]

    u =

    2
    2
    5

    >> v=[0;1;2]

    v =

    1
    2

    >> u+v

    ans =

    2
    3
    7

    no 3.e)
    >> a=[1 0 -1;1 1 2]

    a =

    1 0 -1
    1 1 2

    >> b=[2 2;1 -2]

    b =

    2 2
    1 -2

    >> c=[1 1 0;2 1 0]

    c =

    1 1 0
    2 1 0

    >> 2*c-3*(a-2*c)

    ans =

    5 8 3
    13 5 -6

    no 4.c)
    >> b-[2 2;1 -2]

    ans =

    0 0
    0 0

    >> x=[0 0;0 0]

    x =

    0 0
    0 0

    >> 2*x+[2 2;1 -2]

    ans =

    2 2
    1 -2

    no 5.c)

    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]

    a =

    2
    1

    b =

    3 4

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    jawab
    >> b*a

    ans =

    10

    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)

    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (tidak bisa di kali kan karena beda ordo)

    2.f)
    >> [2 0;2 3]*[3;1]

    ans =

    6
    9

  75. Nama : Septian Dwi Cahyono
    NIM : 10.11.4512
    Kelas : S1 TI 1M

    I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]

    ans =

    7 4 -1
    10 4 4
    2 4 0

    no 1.f)
    >> x=[1;3;0]-[2;2;1]

    x =

    -1
    1
    -1

    >> y=[4;1;0]

    y =

    4
    1

    >> x+y

    ans =

    3
    2
    -1

    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]

    u =

    2
    2
    5

    >> v=[0;1;2]

    v =

    1
    2

    >> u+v

    ans =

    2
    3
    7

    no 3.e)
    >> a=[1 0 -1;1 1 2]

    a =

    1 0 -1
    1 1 2

    >> b=[2 2;1 -2]

    b =

    2 2
    1 -2

    >> c=[1 1 0;2 1 0]

    c =

    1 1 0
    2 1 0

    >> 2*c-3*(a-2*c)

    ans =

    5 8 3
    13 5 -6

    no 4.c)
    >> b-[2 2;1 -2]

    ans =

    0 0
    0 0

    >> x=[0 0;0 0]

    x =

    0 0
    0 0

    >> 2*x+[2 2;1 -2]

    ans =

    2 2
    1 -2

    no 5.c)

    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]

    a =

    2
    1

    b =

    3 4

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    jawab
    >> b*a

    ans =

    10

    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)

    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (tidak bisa di kali kan karena beda ordo)

    2.f)
    >> [2 0;2 3]*[3;1]

    ans =

    6
    9

  76. NAMA : Alan Darmasaputra
    NIM : 10.11.4495
    KELAS : 1M

    I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]

    ans =

    7 4 -1
    10 4 4
    2 4 0

    no 1.f)
    >> x=[1;3;0]-[2;2;1]

    x =

    -1
    1
    -1

    >> y=[4;1;0]

    y =

    4
    1
    0

    >> x+y

    ans =

    3
    2
    -1

    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]

    u =

    2
    2
    5

    >> v=[0;1;2]

    v =

    0
    1
    2

    >> u+v

    ans =

    2
    3
    7

    no 3.e)
    >> a=[1 0 -1;1 1 2]

    a =

    1 0 -1
    1 1 2

    >> b=[2 2;1 -2]

    b =

    2 2
    1 -2

    >> c=[1 1 0;2 1 0]

    c =

    1 1 0
    2 1 0

    >> 2*c-3*(a-2*c)

    ans =

    5 8 3
    13 5 -6

    no 4.c)
    >> b-[2 2;1 -2]

    ans =

    0 0
    0 0

    >> x=[0 0;0 0]

    x =

    0 0
    0 0

    >> 2*x+[2 2;1 -2]

    ans =

    2 2
    1 -2

    no 5.c)

    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]

    a =

    2
    1

    b =

    3 4

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    jawab
    >> b*a

    ans =

    10

    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)

    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (tidak bisa di kali kan karena beda ordo)

    2.f)
    >> [2 0;2 3]*[3;1]

    ans =

    6
    9

  77. I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]

    ans =

    7 4 -1
    10 4 4
    2 4 0

    no 1.f)
    >> x=[1;3;0]-[2;2;1]

    x =

    -1
    1
    -1

    >> y=[4;1;0]

    y =

    4
    1
    0

    >> x+y

    ans =

    3
    2
    -1

    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]

    u =

    2
    2
    5

    >> v=[0;1;2]

    v =

    0
    1
    2

    >> u+v

    ans =

    2
    3
    7

    no 3.e)
    >> a=[1 0 -1;1 1 2]

    a =

    1 0 -1
    1 1 2

    >> b=[2 2;1 -2]

    b =

    2 2
    1 -2

    >> c=[1 1 0;2 1 0]

    c =

    1 1 0
    2 1 0

    >> 2*c-3*(a-2*c)

    ans =

    5 8 3
    13 5 -6

    no 4.c)
    >> b-[2 2;1 -2]

    ans =

    0 0
    0 0

    >> x=[0 0;0 0]

    x =

    0 0
    0 0

    >> 2*x+[2 2;1 -2]

    ans =

    2 2
    1 -2

    no 5.c)

    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]

    a =

    2
    1

    b =

    3 4

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    jawab
    >> b*a

    ans =

    10

    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yang soal h tidak dapat dihitung karena a+b itu beda ordonya)

    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (tidak bisa di kali kan karena beda ordo)

    2.f)
    >> [2 0;2 3]*[3;1]

    ans =

    6
    9

  78. Nama : Muhyiddin Al-Idrus
    NIM : 10.11.4540

    Menggunakan Matlab v7.10

    I. Exercises and Problems
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]

    ans =

    7 4 -1
    10 4 4
    2 4 0

    no 1.f)
    >> x=[1;3;0]-[2;2;1],y=[4;1;0]

    x =

    -1
    1
    -1

    y =

    4
    1
    0

    >> x+y

    ans =

    3
    2
    -1

    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1],v=[0;1;2]

    u =

    2
    2
    5

    v =

    0
    1
    2

    >> u+v

    ans =

    2
    3
    7

    no 3.e)
    >> a=[1 0 -1;1 1 2],b=[2 2;1 -2],c=[1 1 0;2 1 0]

    a =

    1 0 -1
    1 1 2

    b =

    2 2
    1 -2

    c =

    1 1 0
    2 1 0

    >> 2*c-3*(a-2*c)

    ans =

    5 8 3
    13 5 -6

    no 4.c)
    >> x=b-[2 2;1 -2]

    x =

    0 0
    0 0

    Pembuktian
    >> 2*x+[2 2;1 -2]

    ans =

    2 2
    1 -2

    II. Exercises and Problems
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]

    a =

    2
    1

    b =

    3 4

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    jawab
    >> b*a

    ans =

    10

    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)

    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (Eror karena beda ordo antara himpunan)

    2.f)
    >> [2 0;2 3]*[3;1]

    ans =

    6
    9

  79. I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]

    ans =

    7 4 -1
    10 4 4
    2 4 0

    no 1.f)
    >> x=[1;3;0]-[2;2;1]

    x =

    -1
    1
    -1

    >> y=[4;1;0]

    y =

    4
    1
    0

    >> x+y

    ans =

    3
    2
    -1

    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]

    u =

    2
    2
    5

    >> v=[0;1;2]

    v =

    0
    1
    2

    >> u+v

    ans =

    2
    3
    7

    no 3.e)
    >> a=[1 0 -1;1 1 2]

    a =

    1 0 -1
    1 1 2

    >> b=[2 2;1 -2]

    b =

    2 2
    1 -2

    >> c=[1 1 0;2 1 0]

    c =

    1 1 0
    2 1 0

    >> 2*c-3*(a-2*c)

    ans =

    5 8 3
    13 5 -6

    no 4.c)
    >> b-[2 2;1 -2]

    ans =

    0 0
    0 0

    >> x=[0 0;0 0]

    x =

    0 0
    0 0

    >> 2*x+[2 2;1 -2]

    ans =

    2 2
    1 -2

    no 5.c)

    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]

    a =

    2
    1

    b =

    3 4

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    jawab
    >> b*a

    ans =

    10

    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yang soal h tidak dapat dihitung karena a+b itu beda ordonya)

    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (tidak bisa di kali kan karena beda ordo)

    2.f)
    >> [2 0;2 3]*[3;1]

    ans =

    6
    9

  80. nama : Topan Aji Nugroho
    kelas : SI TI 1M
    NIM : 10.11.4519
    I
    1.)e
    >> e = [ 1 2 -1; 0 2 2; 0 2 -2 ] + 2.*[ 3 1 0; 5 2 1; 1 1 1]

    e =

    7 4 -1
    10 6 4
    2 4 0
    1).f
    >> x= [ 1; 3; 0 ] – [ 2; 2; 1 ]

    x =

    -1
    1
    -1

    >> y= [ 4; 1; 0 ]

    y =

    4
    1
    0

    >> x+y

    ans =

    3
    2
    -1

    2.) e
    >> u= [ -2; 2; 3 ]+ 2.*[ 2 ; 0; 1]

    u =

    2
    2
    5

    >> v= [ 0; 1; 2 ]

    v =

    0
    1
    2

    >> u+v

    ans =

    2
    3
    7

    3.)e
    >> A= [ 1 0 -1; 1 1 2]

    A =

    1 0 -1
    1 1 2

    >> B= [ 2 2; 1 -2 ]

    B =

    2 2
    1 -2

    >> C= [ 1 1 0; 2 1 0]

    C =

    1 1 0
    2 1 0

    >> 2.*C-3.*(A-2.*C)

    ans =

    5 8 3
    13 5 -6

    4.)c
    >> b-[2 2;1 -2]

    ans =

    0 0
    0 0
    >> x=[0 0;0 0]

    x =
    0 0
    0 0

    >> 2*x+[2 2;1 -2]

    ans =
    2 2
    1 -2

    5.) c

    II
    1.)g
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]

    a =
    2
    1

    b =
    3 4

    C =
    2.0000 1.0000 + 1.0000i
    0 -1.0000

    jawab

    >> b*a

    ans =
    10

    1.)h
    >> C*(a+b)

    ??? Error using ==> plus

    Matrix dimensions must agree.

    (yg soal h tidak dpt dihitung karena a+b itu beda

    ordonya)

    2.)e
    >> [3;1;4]*[-5 4;-2 3]

    ??? Error using ==> mtimes

    Inner matrix dimensions must agree.

    (tidak bisa di kali kan karena beda ordo)
    2.)f

    >> [2 0;2 3]*[3;1]

    ans =
    6
    9

  81. Nama : Riko Ardian Novriandi
    NIM : 10.11.4524

    I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]

    ans =

    7 4 -1
    10 4 4
    2 4 0

    no 1.f)
    >> x=[1;3;0]-[2;2;1]

    x =

    -1
    1
    -1

    >> y=[4;1;0]

    y =

    4
    1
    0

    >> x+y

    ans =

    3
    2
    -1

    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]

    u =

    2
    2
    5

    >> v=[0;1;2]

    v =

    0
    1
    2

    >> u+v

    ans =

    2
    3
    7

    no 3.e)
    >> a=[1 0 -1;1 1 2]

    a =

    1 0 -1
    1 1 2

    >> b=[2 2;1 -2]

    b =

    2 2
    1 -2

    >> c=[1 1 0;2 1 0]

    c =

    1 1 0
    2 1 0

    >> 2*c-3*(a-2*c)

    ans =

    5 8 3
    13 5 -6

    no 4.c)
    >> b-[2 2;1 -2]

    ans =

    0 0
    0 0

    >> x=[0 0;0 0]

    x =

    0 0
    0 0

    >> 2*x+[2 2;1 -2]

    ans =

    2 2
    1 -2

    no 5.c)

    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]

    a =

    2
    1

    b =

    3 4

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    jawab
    >> b*a

    ans =

    10

    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)

    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (tidak bisa di kali kan karena beda ordo)

    2.f)
    >> [2 0;2 3]*[3;1]

    ans =

    6
    9

  82. NAMA: Punditya Derry Dwi P
    Nim: 10.11.4485

    I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]

    ans =

    7 4 -1
    10 4 4
    2 4 0

    no 1.f)
    >> x=[1;3;0]-[2;2;1]

    x =

    -1
    1
    -1

    >> y=[4;1;0]

    y =

    4
    1
    0

    >> x+y

    ans =

    3
    2
    -1

    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]

    u =

    2
    2
    5

    >> v=[0;1;2]

    v =

    0
    1
    2

    >> u+v

    ans =

    2
    3
    7

    no 3.e)
    >> a=[1 0 -1;1 1 2]

    a =

    1 0 -1
    1 1 2

    >> b=[2 2;1 -2]

    b =

    2 2
    1 -2

    >> c=[1 1 0;2 1 0]

    c =

    1 1 0
    2 1 0

    >> 2*c-3*(a-2*c)

    ans =

    5 8 3
    13 5 -6

    no 4.c)
    >> b-[2 2;1 -2]

    ans =

    0 0
    0 0

    >> x=[0 0;0 0]

    x =

    0 0
    0 0

    >> 2*x+[2 2;1 -2]

    ans =

    2 2
    1 -2

    no 5.c)

    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]

    a =

    2
    1

    b =

    3 4

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    jawab
    >> b*a

    ans =

    10

    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)

    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (tidak bisa di kali kan karena beda ordo)

    2.f)
    >> [2 0;2 3]*[3;1]

    ans =

    6
    9

  83. Nama : Doni Rusman Teja
    NIM : 10.11.4492
    I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]

    ans =

    7 4 -1
    10 4 4
    2 4 0

    no 1.f)
    >> x=[1;3;0]-[2;2;1]

    x =

    -1
    1
    -1

    >> y=[4;1;0]

    y =

    4
    1
    0

    >> x+y

    ans =

    3
    2
    -1

    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]

    u =

    2
    2
    5

    >> v=[0;1;2]

    v =

    0
    1
    2

    >> u+v

    ans =

    2
    3
    7

    no 3.e)
    >> a=[1 0 -1;1 1 2]

    a =

    1 0 -1
    1 1 2

    >> b=[2 2;1 -2]

    b =

    2 2
    1 -2

    >> c=[1 1 0;2 1 0]

    c =

    1 1 0
    2 1 0

    >> 2*c-3*(a-2*c)

    ans =

    5 8 3
    13 5 -6

    no 4.c)
    >> b-[2 2;1 -2]

    ans =

    0 0
    0 0

    >> x=[0 0;0 0]

    x =

    0 0
    0 0

    >> 2*x+[2 2;1 -2]

    ans =

    2 2
    1 -2

    no 5.c)

    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]

    a =

    2
    1

    b =

    3 4

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    jawab
    >> b*a

    ans =

    10

    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)

    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (tidak bisa di kali kan karena beda ordo)

    2.f)
    >> [2 0;2 3]*[3;1]

    ans =

    6
    9

  84. NAMA: Soraya Inayah Fidran
    Nim: 10.11.4522
    KELAS:1M
    I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]

    ans =

    7 4 -1
    10 4 4
    2 4 0

    no 1.f)
    >> x=[1;3;0]-[2;2;1]

    x =

    -1
    1
    -1

    >> y=[4;1;0]

    y =

    4
    1
    0

    >> x+y

    ans =

    3
    2
    -1

    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]

    u =

    2
    2
    5

    >> v=[0;1;2]

    v =

    0
    1
    2

    >> u+v

    ans =

    2
    3
    7

    no 3.e)
    >> a=[1 0 -1;1 1 2]

    a =

    1 0 -1
    1 1 2

    >> b=[2 2;1 -2]

    b =

    2 2
    1 -2

    >> c=[1 1 0;2 1 0]

    c =

    1 1 0
    2 1 0

    >> 2*c-3*(a-2*c)

    ans =

    5 8 3
    13 5 -6

    no 4.c)
    >> b-[2 2;1 -2]

    ans =

    0 0
    0 0

    >> x=[0 0;0 0]

    x =

    0 0
    0 0

    >> 2*x+[2 2;1 -2]

    ans =

    2 2
    1 -2

    no 5.c)

    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]

    a =

    2
    1

    b =

    3 4

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    jawab
    >> b*a

    ans =

    10

    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)

    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (tidak bisa di kali kan karena beda ordo)

    2.f)
    >> [2 0;2 3]*[3;1]

    ans =

    6
    9

  85. Nama : Oky Klinston Tambun
    NIM : 10.11.4494

    I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]

    ans =

    7 4 -1
    10 4 4
    2 4 0

    no 1.f)
    >> x=[1;3;0]-[2;2;1]

    x =

    -1
    1
    -1

    >> y=[4;1;0]

    y =

    4
    1
    0

    >> x+y

    ans =

    3
    2
    -1

    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]

    u =

    2
    2
    5

    >> v=[0;1;2]

    v =

    0
    1
    2

    >> u+v

    ans =

    2
    3
    7

    no 3.e)
    >> a=[1 0 -1;1 1 2]

    a =

    1 0 -1
    1 1 2

    >> b=[2 2;1 -2]

    b =

    2 2
    1 -2

    >> c=[1 1 0;2 1 0]

    c =

    1 1 0
    2 1 0

    >> 2*c-3*(a-2*c)

    ans =

    5 8 3
    13 5 -6

    no 4.c)
    >> b-[2 2;1 -2]

    ans =

    0 0
    0 0

    >> x=[0 0;0 0]

    x =

    0 0
    0 0

    >> 2*x+[2 2;1 -2]

    ans =

    2 2
    1 -2

    no 5.c)

    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]

    a =

    2
    1

    b =

    3 4

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    jawab
    >> b*a

    ans =

    10

    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)

    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (tidak bisa di kali kan karena beda ordo)

    2.f)
    >> [2 0;2 3]*[3;1]

    ans =

    6
    9

  86. NAMA: Pemula Budi Akbar
    Nim: 10.11.4536
    KELAS:1M
    I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]

    ans =

    7 4 -1
    10 4 4
    2 4 0

    no 1.f)
    >> x=[1;3;0]-[2;2;1]

    x =

    -1
    1
    -1

    >> y=[4;1;0]

    y =

    4
    1
    0

    >> x+y

    ans =

    3
    2
    -1

    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]

    u =

    2
    2
    5

    >> v=[0;1;2]

    v =

    0
    1
    2

    >> u+v

    ans =

    2
    3
    7

    no 3.e)
    >> a=[1 0 -1;1 1 2]

    a =

    1 0 -1
    1 1 2

    >> b=[2 2;1 -2]

    b =

    2 2
    1 -2

    >> c=[1 1 0;2 1 0]

    c =

    1 1 0
    2 1 0

    >> 2*c-3*(a-2*c)

    ans =

    5 8 3
    13 5 -6

    no 4.c)
    >> b-[2 2;1 -2]

    ans =

    0 0
    0 0

    >> x=[0 0;0 0]

    x =

    0 0
    0 0

    >> 2*x+[2 2;1 -2]

    ans =

    2 2
    1 -2

    no 5.c)

    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]

    a =

    2
    1

    b =

    3 4

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    jawab
    >> b*a

    ans =

    10

    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)

    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (tidak bisa di kali kan karena beda ordo)

    2.f)
    >> [2 0;2 3]*[3;1]

    ans =

    6
    9

  87. Nama : Deded Fadilah
    NIM : 10.11.4515

    I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]

    ans =

    7 4 -1
    10 4 4
    2 4 0

    no 1.f)
    >> x=[1;3;0]-[2;2;1]

    x =

    -1
    1
    -1

    >> y=[4;1;0]

    y =

    4
    1
    0

    >> x+y

    ans =

    3
    2
    -1

    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]

    u =

    2
    2
    5

    >> v=[0;1;2]

    v =

    0
    1
    2

    >> u+v

    ans =

    2
    3
    7

    no 3.e)
    >> a=[1 0 -1;1 1 2]

    a =

    1 0 -1
    1 1 2

    >> b=[2 2;1 -2]

    b =

    2 2
    1 -2

    >> c=[1 1 0;2 1 0]

    c =

    1 1 0
    2 1 0

    >> 2*c-3*(a-2*c)

    ans =

    5 8 3
    13 5 -6

    no 4.c)
    >> b-[2 2;1 -2]

    ans =

    0 0
    0 0

    >> x=[0 0;0 0]

    x =

    0 0
    0 0

    >> 2*x+[2 2;1 -2]

    ans =

    2 2
    1 -2

    no 5.c)

    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]

    a =

    2
    1

    b =

    3 4

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    jawab
    >> b*a

    ans =

    10

    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)

    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (tidak bisa di kali kan karena beda ordo)

    2.f)
    >> [2 0;2 3]*[3;1]

    ans =

    6
    9

  88. Nama : Febrian Budi Utama
    NIM : 10.11.4543

    I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]

    ans =

    7 4 -1
    10 4 4
    2 4 0

    no 1.f)
    >> x=[1;3;0]-[2;2;1]

    x =

    -1
    1
    -1

    >> y=[4;1;0]

    y =

    4
    1
    0

    >> x+y

    ans =

    3
    2
    -1

    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]

    u =

    2
    2
    5

    >> v=[0;1;2]

    v =

    0
    1
    2

    >> u+v

    ans =

    2
    3
    7

    no 3.e)
    >> a=[1 0 -1;1 1 2]

    a =

    1 0 -1
    1 1 2

    >> b=[2 2;1 -2]

    b =

    2 2
    1 -2

    >> c=[1 1 0;2 1 0]

    c =

    1 1 0
    2 1 0

    >> 2*c-3*(a-2*c)

    ans =

    5 8 3
    13 5 -6

    no 4.c)
    >> b-[2 2;1 -2]

    ans =

    0 0
    0 0

    >> x=[0 0;0 0]

    x =

    0 0
    0 0

    >> 2*x+[2 2;1 -2]

    ans =

    2 2
    1 -2

    no 5.c)

    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]

    a =

    2
    1

    b =

    3 4

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    jawab
    >> b*a

    ans =

    10

    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)

    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (tidak bisa di kali kan karena beda ordo)

    2.f)
    >> [2 0;2 3]*[3;1]

    ans =

    6
    9

  89. NAMA:Punditya Derry Dwi Pratikno
    NIM:10.11.4485
    KELAS:1M
    I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]

    ans =

    7 4 -1
    10 4 4
    2 4 0

    no 1.f)
    >> x=[1;3;0]-[2;2;1]

    x =

    -1
    1
    -1

    >> y=[4;1;0]

    y =

    4
    1
    0

    >> x+y

    ans =

    3
    2
    -1

    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]

    u =

    2
    2
    5

    >> v=[0;1;2]

    v =

    0
    1
    2

    >> u+v

    ans =

    2
    3
    7

    no 3.e)
    >> a=[1 0 -1;1 1 2]

    a =

    1 0 -1
    1 1 2

    >> b=[2 2;1 -2]

    b =

    2 2
    1 -2

    >> c=[1 1 0;2 1 0]

    c =

    1 1 0
    2 1 0

    >> 2*c-3*(a-2*c)

    ans =

    5 8 3
    13 5 -6

    no 4.c)
    >> b-[2 2;1 -2]

    ans =

    0 0
    0 0

    >> x=[0 0;0 0]

    x =

    0 0
    0 0

    >> 2*x+[2 2;1 -2]

    ans =

    2 2
    1 -2

    no 5.c)

    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]

    a =

    2
    1

    b =

    3 4

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    jawab
    >> b*a

    ans =

    10

    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)

    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (tidak bisa di kali kan karena beda ordo)

    2.f)
    >> [2 0;2 3]*[3;1]

    ans =

    6
    9

  90. Nama : Dian Nur A.
    NIM :10.11.4516

    I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]

    ans =

    7 4 -1
    10 4 4
    2 4 0

    no 1.f)
    >> x=[1;3;0]-[2;2;1]

    x =

    -1
    1
    -1

    >> y=[4;1;0]

    y =

    4
    1
    0

    >> x+y

    ans =

    3
    2
    -1

    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]

    u =

    2
    2
    5

    >> v=[0;1;2]

    v =

    0
    1
    2

    >> u+v

    ans =

    2
    3
    7

    no 3.e)
    >> a=[1 0 -1;1 1 2]

    a =

    1 0 -1
    1 1 2

    >> b=[2 2;1 -2]

    b =

    2 2
    1 -2

    >> c=[1 1 0;2 1 0]

    c =

    1 1 0
    2 1 0

    >> 2*c-3*(a-2*c)

    ans =

    5 8 3
    13 5 -6

    no 4.c)
    >> b-[2 2;1 -2]

    ans =

    0 0
    0 0

    >> x=[0 0;0 0]

    x =

    0 0
    0 0

    >> 2*x+[2 2;1 -2]

    ans =

    2 2
    1 -2

    no 5.c)

    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]

    a =

    2
    1

    b =

    3 4

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    jawab
    >> b*a

    ans =

    10

    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)

    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (tidak bisa di kali kan karena beda ordo)

    2.f)
    >> [2 0;2 3]*[3;1]

    ans =

    6
    9

  91. Nama : Tiyas Tri Kusmawati
    NIM : 10.11.4483

    I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]

    ans =

    7 4 -1
    10 4 4
    2 4 0

    no 1.f)
    >> x=[1;3;0]-[2;2;1]

    x =

    -1
    1
    -1

    >> y=[4;1;0]

    y =

    4
    1
    0

    >> x+y

    ans =

    3
    2
    -1

    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]

    u =

    2
    2
    5

    >> v=[0;1;2]

    v =

    0
    1
    2

    >> u+v

    ans =

    2
    3
    7

    no 3.e)
    >> a=[1 0 -1;1 1 2]

    a =

    1 0 -1
    1 1 2

    >> b=[2 2;1 -2]

    b =

    2 2
    1 -2

    >> c=[1 1 0;2 1 0]

    c =

    1 1 0
    2 1 0

    >> 2*c-3*(a-2*c)

    ans =

    5 8 3
    13 5 -6

    no 4.c)
    >> b-[2 2;1 -2]

    ans =

    0 0
    0 0

    >> x=[0 0;0 0]

    x =

    0 0
    0 0

    >> 2*x+[2 2;1 -2]

    ans =

    2 2
    1 -2

    no 5.c)

    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]

    a =

    2
    1

    b =

    3 4

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    jawab
    >> b*a

    ans =

    10

    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)

    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (tidak bisa di kali kan karena beda ordo)

    2.f)
    >> [2 0;2 3]*[3;1]

    ans =

    6
    9

  92. NAMA : Pandu Yudistira Nugraha
    NIM : 10.11.4508
    KELAS : 1M
    I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]

    ans =

    7 4 -1
    10 4 4
    2 4 0

    no 1.f)
    >> x=[1;3;0]-[2;2;1]

    x =

    -1
    1
    -1

    >> y=[4;1;0]

    y =

    4
    1
    0

    >> x+y

    ans =

    3
    2
    -1

    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]

    u =

    2
    2
    5

    >> v=[0;1;2]

    v =

    0
    1
    2

    >> u+v

    ans =

    2
    3
    7

    no 3.e)
    >> a=[1 0 -1;1 1 2]

    a =

    1 0 -1
    1 1 2

    >> b=[2 2;1 -2]

    b =

    2 2
    1 -2

    >> c=[1 1 0;2 1 0]

    c =

    1 1 0
    2 1 0

    >> 2*c-3*(a-2*c)

    ans =

    5 8 3
    13 5 -6

    no 4.c)
    >> b-[2 2;1 -2]

    ans =

    0 0
    0 0

    >> x=[0 0;0 0]

    x =

    0 0
    0 0

    >> 2*x+[2 2;1 -2]

    ans =

    2 2
    1 -2

    no 5.c)

    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]

    a =

    2
    1

    b =

    3 4

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    jawab
    >> b*a

    ans =

    10

    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)

    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (tidak bisa di kali kan karena beda ordo)

    2.f)
    >> [2 0;2 3]*[3;1]

    ans =

    6
    9

  93. Nama : Ade Gunawan M Putra
    NIM : 10.11.4520

    I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]

    ans =

    7 4 -1
    10 4 4
    2 4 0

    no 1.f)
    >> x=[1;3;0]-[2;2;1]

    x =

    -1
    1
    -1

    >> y=[4;1;0]

    y =

    4
    1
    0

    >> x+y

    ans =

    3
    2
    -1

    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]

    u =

    2
    2
    5

    >> v=[0;1;2]

    v =

    0
    1
    2

    >> u+v

    ans =

    2
    3
    7

    no 3.e)
    >> a=[1 0 -1;1 1 2]

    a =

    1 0 -1
    1 1 2

    >> b=[2 2;1 -2]

    b =

    2 2
    1 -2

    >> c=[1 1 0;2 1 0]

    c =

    1 1 0
    2 1 0

    >> 2*c-3*(a-2*c)

    ans =

    5 8 3
    13 5 -6

    no 4.c)
    >> b-[2 2;1 -2]

    ans =

    0 0
    0 0

    >> x=[0 0;0 0]

    x =

    0 0
    0 0

    >> 2*x+[2 2;1 -2]

    ans =

    2 2
    1 -2

    no 5.c)

    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]

    a =

    2
    1

    b =

    3 4

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    jawab
    >> b*a

    ans =

    10

    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)

    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (tidak bisa di kali kan karena beda ordo)

    2.f)
    >> [2 0;2 3]*[3;1]

    ans =

    6
    9

  94. Nama : Dyta Romania
    NIM : 10.11.4500

    I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]

    ans =

    7 4 -1
    10 4 4
    2 4 0

    no 1.f)
    >> x=[1;3;0]-[2;2;1]

    x =

    -1
    1
    -1

    >> y=[4;1;0]

    y =

    4
    1
    0

    >> x+y

    ans =

    3
    2
    -1

    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]

    u =

    2
    2
    5

    >> v=[0;1;2]

    v =

    0
    1
    2

    >> u+v

    ans =

    2
    3
    7

    no 3.e)
    >> a=[1 0 -1;1 1 2]

    a =

    1 0 -1
    1 1 2

    >> b=[2 2;1 -2]

    b =

    2 2
    1 -2

    >> c=[1 1 0;2 1 0]

    c =

    1 1 0
    2 1 0

    >> 2*c-3*(a-2*c)

    ans =

    5 8 3
    13 5 -6

    no 4.c)
    >> b-[2 2;1 -2]

    ans =

    0 0
    0 0

    >> x=[0 0;0 0]

    x =

    0 0
    0 0

    >> 2*x+[2 2;1 -2]

    ans =

    2 2
    1 -2

    no 5.c)

    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]

    a =

    2
    1

    b =

    3 4

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    jawab
    >> b*a

    ans =

    10

    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)

    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (tidak bisa di kali kan karena beda ordo)

    2.f)
    >> [2 0;2 3]*[3;1]

    ans =

    6
    9

  95. NAMA : Yonathan Prasetioso
    NIM : 10.11.4517
    KELAS : 1M
    I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]

    ans =

    7 4 -1
    10 4 4
    2 4 0

    no 1.f)
    >> x=[1;3;0]-[2;2;1]

    x =

    -1
    1
    -1

    >> y=[4;1;0]

    y =

    4
    1
    0

    >> x+y

    ans =

    3
    2
    -1

    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]

    u =

    2
    2
    5

    >> v=[0;1;2]

    v =

    0
    1
    2

    >> u+v

    ans =

    2
    3
    7

    no 3.e)
    >> a=[1 0 -1;1 1 2]

    a =

    1 0 -1
    1 1 2

    >> b=[2 2;1 -2]

    b =

    2 2
    1 -2

    >> c=[1 1 0;2 1 0]

    c =

    1 1 0
    2 1 0

    >> 2*c-3*(a-2*c)

    ans =

    5 8 3
    13 5 -6

    no 4.c)
    >> b-[2 2;1 -2]

    ans =

    0 0
    0 0

    >> x=[0 0;0 0]

    x =

    0 0
    0 0

    >> 2*x+[2 2;1 -2]

    ans =

    2 2
    1 -2

    no 5.c)

    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]

    a =

    2
    1

    b =

    3 4

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    jawab
    >> b*a

    ans =

    10

    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)

    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (tidak bisa di kali kan karena beda ordo)

    2.f)
    >> [2 0;2 3]*[3;1]

    ans =

    6
    9

  96. NAMA : Punditya Derry Dwi Pratikno
    NIM : 10.11.4485
    KELAS : 1M
    I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]

    ans =

    7 4 -1
    10 4 4
    2 4 0

    no 1.f)
    >> x=[1;3;0]-[2;2;1]

    x =

    -1
    1
    -1

    >> y=[4;1;0]

    y =

    4
    1
    0

    >> x+y

    ans =

    3
    2
    -1

    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]

    u =

    2
    2
    5

    >> v=[0;1;2]

    v =

    0
    1
    2

    >> u+v

    ans =

    2
    3
    7

    no 3.e)
    >> a=[1 0 -1;1 1 2]

    a =

    1 0 -1
    1 1 2

    >> b=[2 2;1 -2]

    b =

    2 2
    1 -2

    >> c=[1 1 0;2 1 0]

    c =

    1 1 0
    2 1 0

    >> 2*c-3*(a-2*c)

    ans =

    5 8 3
    13 5 -6

    no 4.c)
    >> b-[2 2;1 -2]

    ans =

    0 0
    0 0

    >> x=[0 0;0 0]

    x =

    0 0
    0 0

    >> 2*x+[2 2;1 -2]

    ans =

    2 2
    1 -2

    no 5.c)

    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]

    a =

    2
    1

    b =

    3 4

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    jawab
    >> b*a

    ans =

    10

    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)

    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (tidak bisa di kali kan karena beda ordo)

    2.f)
    >> [2 0;2 3]*[3;1]

    ans =

    6
    9

  97. Nama : Senja Permata Dewanti
    NIM : 10.11.4511

    I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]

    ans =

    7 4 -1
    10 4 4
    2 4 0

    no 1.f)
    >> x=[1;3;0]-[2;2;1]

    x =

    -1
    1
    -1

    >> y=[4;1;0]

    y =

    4
    1
    0

    >> x+y

    ans =

    3
    2
    -1

    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]

    u =

    2
    2
    5

    >> v=[0;1;2]

    v =

    0
    1
    2

    >> u+v

    ans =

    2
    3
    7

    no 3.e)
    >> a=[1 0 -1;1 1 2]

    a =

    1 0 -1
    1 1 2

    >> b=[2 2;1 -2]

    b =

    2 2
    1 -2

    >> c=[1 1 0;2 1 0]

    c =

    1 1 0
    2 1 0

    >> 2*c-3*(a-2*c)

    ans =

    5 8 3
    13 5 -6

    no 4.c)
    >> b-[2 2;1 -2]

    ans =

    0 0
    0 0

    >> x=[0 0;0 0]

    x =

    0 0
    0 0

    >> 2*x+[2 2;1 -2]

    ans =

    2 2
    1 -2

    no 5.c)

    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]

    a =

    2
    1

    b =

    3 4

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    jawab
    >> b*a

    ans =

    10

    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)

    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (tidak bisa di kali kan karena beda ordo)

    2.f)
    >> [2 0;2 3]*[3;1]

    ans =

    6
    9

  98. NAMA : Sinta Sulistyaningsih
    NIM :10.11.4518
    KELAS : 1M
    I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]

    ans =

    7 4 -1
    10 4 4
    2 4 0

    no 1.f)
    >> x=[1;3;0]-[2;2;1]

    x =

    -1
    1
    -1

    >> y=[4;1;0]

    y =

    4
    1
    0

    >> x+y

    ans =

    3
    2
    -1

    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]

    u =

    2
    2
    5

    >> v=[0;1;2]

    v =

    0
    1
    2

    >> u+v

    ans =

    2
    3
    7

    no 3.e)
    >> a=[1 0 -1;1 1 2]

    a =

    1 0 -1
    1 1 2

    >> b=[2 2;1 -2]

    b =

    2 2
    1 -2

    >> c=[1 1 0;2 1 0]

    c =

    1 1 0
    2 1 0

    >> 2*c-3*(a-2*c)

    ans =

    5 8 3
    13 5 -6

    no 4.c)
    >> b-[2 2;1 -2]

    ans =

    0 0
    0 0

    >> x=[0 0;0 0]

    x =

    0 0
    0 0

    >> 2*x+[2 2;1 -2]

    ans =

    2 2
    1 -2

    no 5.c)

    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]

    a =

    2
    1

    b =

    3 4

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    jawab
    >> b*a

    ans =

    10

    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)

    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (tidak bisa di kali kan karena beda ordo)

    2.f)
    >> [2 0;2 3]*[3;1]

    ans =

    6
    9

  99. NAMA : Eko Septianto
    NIM :10.11.4504
    KELAS :1M
    I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]

    ans =

    7 4 -1
    10 4 4
    2 4 0

    no 1.f)
    >> x=[1;3;0]-[2;2;1]

    x =

    -1
    1
    -1

    >> y=[4;1;0]

    y =

    4
    1
    0

    >> x+y

    ans =

    3
    2
    -1

    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]

    u =

    2
    2
    5

    >> v=[0;1;2]

    v =

    0
    1
    2

    >> u+v

    ans =

    2
    3
    7

    no 3.e)
    >> a=[1 0 -1;1 1 2]

    a =

    1 0 -1
    1 1 2

    >> b=[2 2;1 -2]

    b =

    2 2
    1 -2

    >> c=[1 1 0;2 1 0]

    c =

    1 1 0
    2 1 0

    >> 2*c-3*(a-2*c)

    ans =

    5 8 3
    13 5 -6

    no 4.c)
    >> b-[2 2;1 -2]

    ans =

    0 0
    0 0

    >> x=[0 0;0 0]

    x =

    0 0
    0 0

    >> 2*x+[2 2;1 -2]

    ans =

    2 2
    1 -2

    no 5.c)

    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]

    a =

    2
    1

    b =

    3 4

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    jawab
    >> b*a

    ans =

    10

    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)

    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (tidak bisa di kali kan karena beda ordo)

    2.f)
    >> [2 0;2 3]*[3;1]

    ans =

    6
    9

  100. Nama : Muhyiddin Al-Idrus
    NIM : 10.11.4540
    bagian 1.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]

    ans =

    7 4 -1
    10 4 4
    2 4 0

    no 1.f)
    >> x=[1;3;0]-[2;2;1]

    x =

    -1
    1
    -1

    >> y=[4;1;0]

    y =

    4
    1
    0

    >> x+y

    ans =

    3
    2
    -1

    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]

    u =

    2
    2
    5

    >> v=[0;1;2]

    v =

    0
    1
    2

    >> u+v

    ans =

    2
    3
    7

    no 3.e)
    >> a=[1 0 -1;1 1 2]

    a =

    1 0 -1
    1 1 2

    >> b=[2 2;1 -2]

    b =

    2 2
    1 -2

    >> c=[1 1 0;2 1 0]

    c =

    1 1 0
    2 1 0

    >> 2*c-3*(a-2*c)

    ans =

    5 8 3
    13 5 -6

    no 4.c)
    >> b-[2 2;1 -2]

    ans =

    0 0
    0 0

    >> x=[0 0;0 0]

    x =

    0 0
    0 0

    >> 2*x+[2 2;1 -2]

    ans =

    2 2
    1 -2

    no 5.c)

    bagian 2.
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]

    a =

    2
    1

    b =

    3 4

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    jawab
    >> b*a

    ans =

    10

    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)

    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (tidak bisa di kali kan karena beda ordo)

    2.f)
    >> [2 0;2 3]*[3;1]

    ans =

    6
    9

  101. NAMA : Listiyaningsih
    NIM : 10.11.4482
    KELAS : 1M
    I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]

    ans =

    7 4 -1
    10 4 4
    2 4 0

    no 1.f)
    >> x=[1;3;0]-[2;2;1]

    x =

    -1
    1
    -1

    >> y=[4;1;0]

    y =

    4
    1
    0

    >> x+y

    ans =

    3
    2
    -1

    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]

    u =

    2
    2
    5

    >> v=[0;1;2]

    v =

    0
    1
    2

    >> u+v

    ans =

    2
    3
    7

    no 3.e)
    >> a=[1 0 -1;1 1 2]

    a =

    1 0 -1
    1 1 2

    >> b=[2 2;1 -2]

    b =

    2 2
    1 -2

    >> c=[1 1 0;2 1 0]

    c =

    1 1 0
    2 1 0

    >> 2*c-3*(a-2*c)

    ans =

    5 8 3
    13 5 -6

    no 4.c)
    >> b-[2 2;1 -2]

    ans =

    0 0
    0 0

    >> x=[0 0;0 0]

    x =

    0 0
    0 0

    >> 2*x+[2 2;1 -2]

    ans =

    2 2
    1 -2

    no 5.c)

    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]

    a =

    2
    1

    b =

    3 4

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    jawab
    >> b*a

    ans =

    10

    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)

    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (tidak bisa di kali kan karena beda ordo)

    2.f)
    >> [2 0;2 3]*[3;1]

    ans =

    6
    9

  102. I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]

    ans =

    7 4 -1
    10 4 4
    2 4 0

    no 1.f)
    >> x=[1;3;0]-[2;2;1]

    x =

    -1
    1
    -1

    >> y=[4;1;0]

    y =

    4
    1
    0

    >> x+y

    ans =

    3
    2
    -1

    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]

    u =

    2
    2
    5

    >> v=[0;1;2]

    v =

    0
    1
    2

    >> u+v

    ans =

    2
    3
    7

    no 3.e)
    >> a=[1 0 -1;1 1 2]

    a =

    1 0 -1
    1 1 2

    >> b=[2 2;1 -2]

    b =

    2 2
    1 -2

    >> c=[1 1 0;2 1 0]

    c =

    1 1 0
    2 1 0

    >> 2*c-3*(a-2*c)

    ans =

    5 8 3
    13 5 -6

    no 4.c)
    >> b-[2 2;1 -2]

    ans =

    0 0
    0 0

    >> x=[0 0;0 0]

    x =

    0 0
    0 0

    >> 2*x+[2 2;1 -2]

    ans =

    2 2
    1 -2

    no 5.c)

    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]

    a =

    2
    1

    b =

    3 4

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    jawab
    >> b*a

    ans =

    10

    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)

    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (tidak bisa di kali kan karena beda ordo)

    2.f)
    >> [2 0;2 3]*[3;1]

    ans =

    6
    9

  103. I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]

    ans =

    7 4 -1
    10 4 4
    2 4 0

    no 1.f)
    >> x=[1;3;0]-[2;2;1]

    x =

    -1
    1
    -1

    >> y=[4;1;0]

    y =

    4
    1
    0

    >> x+y

    ans =

    3
    2
    -1

    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]

    u =

    2
    2
    5

    >> v=[0;1;2]

    v =

    0
    1
    2

    >> u+v

    ans =

    2
    3
    7

    no 3.e)
    >> a=[1 0 -1;1 1 2]

    a =

    1 0 -1
    1 1 2

    >> b=[2 2;1 -2]

    b =

    2 2
    1 -2

    >> c=[1 1 0;2 1 0]

    c =

    1 1 0
    2 1 0

    >> 2*c-3*(a-2*c)

    ans =

    5 8 3
    13 5 -6

    no 4.c)
    >> b-[2 2;1 -2]

    ans =

    0 0
    0 0

    >> x=[0 0;0 0]

    x =

    0 0
    0 0

    >> 2*x+[2 2;1 -2]

    ans =

    2 2
    1 -2

    no 5.c)

    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]

    a =

    2
    1

    b =

    3 4

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    jawab
    >> b*a

    ans =

    10

    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)

    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (tidak bisa di kali kan karena beda ordo)

    2.f)
    >> [2 0;2 3]*[3;1]

    ans =

    6
    9

  104. I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]

    ans =

    7 4 -1
    10 4 4
    2 4 0

    no 1.f)
    >> x=[1;3;0]-[2;2;1]

    x =

    -1
    1
    -1

    >> y=[4;1;0]

    y =

    4
    1
    0

    >> x+y

    ans =

    3
    2
    -1

    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]

    u =

    2
    2
    5

    >> v=[0;1;2]

    v =

    0
    1
    2

    >> u+v

    ans =

    2
    3
    7

    no 3.e)
    >> a=[1 0 -1;1 1 2]

    a =

    1 0 -1
    1 1 2

    >> b=[2 2;1 -2]

    b =

    2 2
    1 -2

    >> c=[1 1 0;2 1 0]

    c =

    1 1 0
    2 1 0

    >> 2*c-3*(a-2*c)

    ans =

    5 8 3
    13 5 -6

    no 4.c)
    >> b-[2 2;1 -2]

    ans =

    0 0
    0 0

    >> x=[0 0;0 0]

    x =

    0 0
    0 0

    >> 2*x+[2 2;1 -2]

    ans =

    2 2
    1 -2

    no 5.c)

    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]

    a =

    2
    1

    b =

    3 4

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    jawab
    >> b*a

    ans =

    10

    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)

    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (tidak bisa di kali kan karena beda ordo)

    2.f)
    >> [2 0;2 3]*[3;1]

    ans =

    6
    9

  105. Nama : Rut Merilene H
    NIM : 10.11.4474

    I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]

    ans =

    7 4 -1
    10 4 4
    2 4 0

    no 1.f)
    >> x=[1;3;0]-[2;2;1]

    x =

    -1
    1
    -1

    >> y=[4;1;0]

    y =

    4
    1
    0

    >> x+y

    ans =

    3
    2
    -1

    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]

    u =

    2
    2
    5

    >> v=[0;1;2]

    v =

    0
    1
    2

    >> u+v

    ans =

    2
    3
    7

    no 3.e)
    >> a=[1 0 -1;1 1 2]

    a =

    1 0 -1
    1 1 2

    >> b=[2 2;1 -2]

    b =

    2 2
    1 -2

    >> c=[1 1 0;2 1 0]

    c =

    1 1 0
    2 1 0

    >> 2*c-3*(a-2*c)

    ans =

    5 8 3
    13 5 -6

    no 4.c)
    >> b-[2 2;1 -2]

    ans =

    0 0
    0 0

    >> x=[0 0;0 0]

    x =

    0 0
    0 0

    >> 2*x+[2 2;1 -2]

    ans =

    2 2
    1 -2

    no 5.c)

    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]

    a =

    2
    1

    b =

    3 4

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    jawab
    >> b*a

    ans =

    10

    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)

    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (tidak bisa di kali kan karena beda ordo)

    2.f)
    >> [2 0;2 3]*[3;1]

    ans =

    6
    9

  106. nama : Muhyiddin Al-Idrus
    NIM : 10.11.4540

    I.
    no 1.e)
    >> [1 2 -1;0 0 2;0 2 -2]+2*[3 1 0;5 2 1;1 1 1]

    ans =

    7 4 -1
    10 4 4
    2 4 0

    no 1.f)
    >> x=[1;3;0]-[2;2;1]

    x =

    -1
    1
    -1

    >> y=[4;1;0]

    y =

    4
    1
    0

    >> x+y

    ans =

    3
    2
    -1

    no 2.e)
    >> u=[-2;2;3]+2*[2;0;1]

    u =

    2
    2
    5

    >> v=[0;1;2]

    v =

    0
    1
    2

    >> u+v

    ans =

    2
    3
    7

    no 3.e)
    >> a=[1 0 -1;1 1 2]

    a =

    1 0 -1
    1 1 2

    >> b=[2 2;1 -2]

    b =

    2 2
    1 -2

    >> c=[1 1 0;2 1 0]

    c =

    1 1 0
    2 1 0

    >> 2*c-3*(a-2*c)

    ans =

    5 8 3
    13 5 -6

    no 4.c)
    >> b-[2 2;1 -2]

    ans =

    0 0
    0 0

    >> x=[0 0;0 0]

    x =

    0 0
    0 0

    >> 2*x+[2 2;1 -2]

    ans =

    2 2
    1 -2

    no 5.c)

    II
    1.g)
    >> a=[2;1],b=[3 4],C=[2 1+i;0 -1]

    a =

    2
    1

    b =

    3 4

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    jawab
    >> b*a

    ans =

    10

    1.h)
    >> C*(a+b)
    ??? Error using ==> plus
    Matrix dimensions must agree.
    (yg soal h tidak dpt dihitung karena a+b itu beda ordonya)

    2.e)
    >> [3;1;4]*[-5 4;-2 3]
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.
    (tidak bisa di kali kan karena beda ordo)

    2.f)
    >> [2 0;2 3]*[3;1]

    ans =

    6
    9

  107. Nama : Aurelius N Taja
    NIM : 10.11.4473
    Kelas : S1 T1 1-M

    To get started, select “MATLAB Help” from the Help menu.

    1.e).>> A=[1 2 -1;0 0 2;0 2 -2]

    A =

    1 2 -1
    0 0 2
    0 2 -2

    >> B=[3 1 0;5 2 1;1 1 1]

    B =

    3 1 0
    5 2 1
    1 1 1

    >> A+2*B

    ans =

    7 4 -1
    10 4 4
    2 4 0

    3e.)>> A=[1 0 -1;1 1 2]

    A =

    1 0 -1
    1 1 2

    >> B=[2 2;1 -2]

    B =

    2 2
    1 -2

    >> C=[1 1 0;2 1 0]

    C =

    1 1 0
    2 1 0

    >> 2*C-3*[A-2*C]

    ans =

    5 8 3
    13 5 -6
    4c.)
    >> A=[1 0 -1;1 1 2]

    A =

    1 0 -1
    1 1 2

    >> B=[2 2;1 -2]

    B =

    2 2
    1 -2

    >> C=[1 1 0;2 1 -2]

    C =

    1 1 0
    2 1 -2

    >> B-B

    ans =

    0 0
    0 0

    >> D=B-B

    D =

    0 0
    0 0

    >> X=D/2

    X =

    0 0
    0 0
    II
    1g)>> a=[2;1]

    a =

    2
    1

    >> b=[3 4]

    b =

    3 4

    >> C=[2 1+i;0 -1 ]

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    >> b*a

    ans =

    10

    1h.)>> C*[a+b]
    ??? Error using ==> +
    Matrix dimensions must agree.

    2e).>> A=[3;1;4]

    A =

    3
    1
    4

    >> B=[-5 4;-2 3]

    B =

    -5 4
    -2 3

    >> A*B
    ??? Error using ==> *
    Inner matrix dimensions must agree.

    2f.)>> a=[2 0;2 3]

    a =

    2 0
    2 3

    >> b=[3;1]

    b =

    3
    1

    >> a*b

    ans =

    6
    9

  108. Nama : Muhammad Ibrahim
    NIM : 10.11.4481
    Kelas : S1 TI 1-M

    To get started, select “MATLAB Help” from the Help menu.

    1.e).>> A=[1 2 -1;0 0 2;0 2 -2]

    A =

    1 2 -1
    0 0 2
    0 2 -2

    >> B=[3 1 0;5 2 1;1 1 1]

    B =

    3 1 0
    5 2 1
    1 1 1

    >> A+2*B

    ans =

    7 4 -1
    10 4 4
    2 4 0

    3e.)>> A=[1 0 -1;1 1 2]

    A =

    1 0 -1
    1 1 2

    >> B=[2 2;1 -2]

    B =

    2 2
    1 -2

    >> C=[1 1 0;2 1 0]

    C =

    1 1 0
    2 1 0

    >> 2*C-3*[A-2*C]

    ans =

    5 8 3
    13 5 -6
    4c.)
    >> A=[1 0 -1;1 1 2]

    A =

    1 0 -1
    1 1 2

    >> B=[2 2;1 -2]

    B =

    2 2
    1 -2

    >> C=[1 1 0;2 1 -2]

    C =

    1 1 0
    2 1 -2

    >> B-B

    ans =

    0 0
    0 0

    >> D=B-B

    D =

    0 0
    0 0

    >> X=D/2

    X =

    0 0
    0 0
    II
    1g)>> a=[2;1]

    a =

    2
    1

    >> b=[3 4]

    b =

    3 4

    >> C=[2 1+i;0 -1 ]

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    >> b*a

    ans =

    10

    1h.)>> C*[a+b]
    ??? Error using ==> +
    Matrix dimensions must agree.

    2e).>> A=[3;1;4]

    A =

    3
    1
    4

    >> B=[-5 4;-2 3]

    B =

    -5 4
    -2 3

    >> A*B
    ??? Error using ==> *
    Inner matrix dimensions must agree.

    2f.)>> a=[2 0;2 3]

    a =

    2 0
    2 3

    >> b=[3;1]

    b =

    3
    1

    >> a*b

    ans =

    6
    9

  109. Nama : Faldi Dwi Hastiya
    NIM : 10.11.4543
    Kelas : S1 T1 1-M

    To get started, select “MATLAB Help” from the Help menu.

    1.e).>> A=[1 2 -1;0 0 2;0 2 -2]

    A =

    1 2 -1
    0 0 2
    0 2 -2

    >> B=[3 1 0;5 2 1;1 1 1]

    B =

    3 1 0
    5 2 1
    1 1 1

    >> A+2*B

    ans =

    7 4 -1
    10 4 4
    2 4 0

    3e.)>> A=[1 0 -1;1 1 2]

    A =

    1 0 -1
    1 1 2

    >> B=[2 2;1 -2]

    B =

    2 2
    1 -2

    >> C=[1 1 0;2 1 0]

    C =

    1 1 0
    2 1 0

    >> 2*C-3*[A-2*C]

    ans =

    5 8 3
    13 5 -6
    4c.)
    >> A=[1 0 -1;1 1 2]

    A =

    1 0 -1
    1 1 2

    >> B=[2 2;1 -2]

    B =

    2 2
    1 -2

    >> C=[1 1 0;2 1 -2]

    C =

    1 1 0
    2 1 -2

    >> B-B

    ans =

    0 0
    0 0

    >> D=B-B

    D =

    0 0
    0 0

    >> X=D/2

    X =

    0 0
    0 0
    II
    1g)>> a=[2;1]

    a =

    2
    1

    >> b=[3 4]

    b =

    3 4

    >> C=[2 1+i;0 -1 ]

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    >> b*a

    ans =

    10

    1h.)>> C*[a+b]
    ??? Error using ==> +
    Matrix dimensions must agree.

    2e).>> A=[3;1;4]

    A =

    3
    1
    4

    >> B=[-5 4;-2 3]

    B =

    -5 4
    -2 3

    >> A*B
    ??? Error using ==> *
    Inner matrix dimensions must agree.

    2f.)>> a=[2 0;2 3]

    a =

    2 0
    2 3

    >> b=[3;1]

    b =

    3
    1

    >> a*b

    ans =

    6
    9

  110. Nama : Muhammad Ulinuha n.h
    NIM : 10.11.4544
    Kelas : S1 TI 1-M

    To get started, select “MATLAB Help” from the Help menu.

    1.e).>> A=[1 2 -1;0 0 2;0 2 -2]

    A =

    1 2 -1
    0 0 2
    0 2 -2

    >> B=[3 1 0;5 2 1;1 1 1]

    B =

    3 1 0
    5 2 1
    1 1 1

    >> A+2*B

    ans =

    7 4 -1
    10 4 4
    2 4 0

    3e.)>> A=[1 0 -1;1 1 2]

    A =

    1 0 -1
    1 1 2

    >> B=[2 2;1 -2]

    B =

    2 2
    1 -2

    >> C=[1 1 0;2 1 0]

    C =

    1 1 0
    2 1 0

    >> 2*C-3*[A-2*C]

    ans =

    5 8 3
    13 5 -6
    4c.)
    >> A=[1 0 -1;1 1 2]

    A =

    1 0 -1
    1 1 2

    >> B=[2 2;1 -2]

    B =

    2 2
    1 -2

    >> C=[1 1 0;2 1 -2]

    C =

    1 1 0
    2 1 -2

    >> B-B

    ans =

    0 0
    0 0

    >> D=B-B

    D =

    0 0
    0 0

    >> X=D/2

    X =

    0 0
    0 0
    II
    1g)>> a=[2;1]

    a =

    2
    1

    >> b=[3 4]

    b =

    3 4

    >> C=[2 1+i;0 -1 ]

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    >> b*a

    ans =

    10

    1h.)>> C*[a+b]
    ??? Error using ==> +
    Matrix dimensions must agree.

    2e).>> A=[3;1;4]

    A =

    3
    1
    4

    >> B=[-5 4;-2 3]

    B =

    -5 4
    -2 3

    >> A*B
    ??? Error using ==> *
    Inner matrix dimensions must agree.

    2f.)>> a=[2 0;2 3]

    a =

    2 0
    2 3

    >> b=[3;1]

    b =

    3
    1

    >> a*b

    ans =

    6
    9

  111. Nama : Beni Viktor
    NIM : 10.11.4480
    Kelas : S1 TI 1-M

    To get started, select “MATLAB Help” from the Help menu.

    1.e).>> A=[1 2 -1;0 0 2;0 2 -2]

    A =

    1 2 -1
    0 0 2
    0 2 -2

    >> B=[3 1 0;5 2 1;1 1 1]

    B =

    3 1 0
    5 2 1
    1 1 1

    >> A+2*B

    ans =

    7 4 -1
    10 4 4
    2 4 0

    3e.)>> A=[1 0 -1;1 1 2]

    A =

    1 0 -1
    1 1 2

    >> B=[2 2;1 -2]

    B =

    2 2
    1 -2

    >> C=[1 1 0;2 1 0]

    C =

    1 1 0
    2 1 0

    >> 2*C-3*[A-2*C]

    ans =

    5 8 3
    13 5 -6
    4c.)
    >> A=[1 0 -1;1 1 2]

    A =

    1 0 -1
    1 1 2

    >> B=[2 2;1 -2]

    B =

    2 2
    1 -2

    >> C=[1 1 0;2 1 -2]

    C =

    1 1 0
    2 1 -2

    >> B-B

    ans =

    0 0
    0 0

    >> D=B-B

    D =

    0 0
    0 0

    >> X=D/2

    X =

    0 0
    0 0
    II
    1g)>> a=[2;1]

    a =

    2
    1

    >> b=[3 4]

    b =

    3 4

    >> C=[2 1+i;0 -1 ]

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    >> b*a

    ans =

    10

    1h.)>> C*[a+b]
    ??? Error using ==> +
    Matrix dimensions must agree.

    2e).>> A=[3;1;4]

    A =

    3
    1
    4

    >> B=[-5 4;-2 3]

    B =

    -5 4
    -2 3

    >> A*B
    ??? Error using ==> *
    Inner matrix dimensions must agree.

    2f.)>> a=[2 0;2 3]

    a =

    2 0
    2 3

    >> b=[3;1]

    b =

    3
    1

    >> a*b

    ans =

    6
    9

  112. Nama :Dwi Prasetyo Wibowo
    NIM : 10.11.4471
    Kelas : S1 TI 1-M

    To get started, select “MATLAB Help” from the Help menu.

    1.e).>> A=[1 2 -1;0 0 2;0 2 -2]

    A =

    1 2 -1
    0 0 2
    0 2 -2

    >> B=[3 1 0;5 2 1;1 1 1]

    B =

    3 1 0
    5 2 1
    1 1 1

    >> A+2*B

    ans =

    7 4 -1
    10 4 4
    2 4 0

    3e.)>> A=[1 0 -1;1 1 2]

    A =

    1 0 -1
    1 1 2

    >> B=[2 2;1 -2]

    B =

    2 2
    1 -2

    >> C=[1 1 0;2 1 0]

    C =

    1 1 0
    2 1 0

    >> 2*C-3*[A-2*C]

    ans =

    5 8 3
    13 5 -6
    4c.)
    >> A=[1 0 -1;1 1 2]

    A =

    1 0 -1
    1 1 2

    >> B=[2 2;1 -2]

    B =

    2 2
    1 -2

    >> C=[1 1 0;2 1 -2]

    C =

    1 1 0
    2 1 -2

    >> B-B

    ans =

    0 0
    0 0

    >> D=B-B

    D =

    0 0
    0 0

    >> X=D/2

    X =

    0 0
    0 0
    II
    1g)>> a=[2;1]

    a =

    2
    1

    >> b=[3 4]

    b =

    3 4

    >> C=[2 1+i;0 -1 ]

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    >> b*a

    ans =

    10

    1h.)>> C*[a+b]
    ??? Error using ==> +
    Matrix dimensions must agree.

    2e).>> A=[3;1;4]

    A =

    3
    1
    4

    >> B=[-5 4;-2 3]

    B =

    -5 4
    -2 3

    >> A*B
    ??? Error using ==> *
    Inner matrix dimensions must agree.

    2f.)>> a=[2 0;2 3]

    a =

    2 0
    2 3

    >> b=[3;1]

    b =

    3
    1

    >> a*b

    ans =

    6
    9

  113. Nama :Muhammad Ulinuha n.h
    NIM :10.11.4544
    Kelas : S1 TI 1-M

    To get started, select “MATLAB Help” from the Help menu.

    1.e).>> A=[1 2 -1;0 0 2;0 2 -2]

    A =

    1 2 -1
    0 0 2
    0 2 -2

    >> B=[3 1 0;5 2 1;1 1 1]

    B =

    3 1 0
    5 2 1
    1 1 1

    >> A+2*B

    ans =

    7 4 -1
    10 4 4
    2 4 0

    3e.)>> A=[1 0 -1;1 1 2]

    A =

    1 0 -1
    1 1 2

    >> B=[2 2;1 -2]

    B =

    2 2
    1 -2

    >> C=[1 1 0;2 1 0]

    C =

    1 1 0
    2 1 0

    >> 2*C-3*[A-2*C]

    ans =

    5 8 3
    13 5 -6
    4c.)
    >> A=[1 0 -1;1 1 2]

    A =

    1 0 -1
    1 1 2

    >> B=[2 2;1 -2]

    B =

    2 2
    1 -2

    >> C=[1 1 0;2 1 -2]

    C =

    1 1 0
    2 1 -2

    >> B-B

    ans =

    0 0
    0 0

    >> D=B-B

    D =

    0 0
    0 0

    >> X=D/2

    X =

    0 0
    0 0
    II
    1g)>> a=[2;1]

    a =

    2
    1

    >> b=[3 4]

    b =

    3 4

    >> C=[2 1+i;0 -1 ]

    C =

    2.0000 1.0000 + 1.0000i
    0 -1.0000

    >> b*a

    ans =

    10

    1h.)>> C*[a+b]
    ??? Error using ==> +
    Matrix dimensions must agree.

    2e).>> A=[3;1;4]

    A =

    3
    1
    4

    >> B=[-5 4;-2 3]

    B =

    -5 4
    -2 3

    >> A*B
    ??? Error using ==> *
    Inner matrix dimensions must agree.

    2f.)>> a=[2 0;2 3]

    a =

    2 0
    2 3

    >> b=[3;1]

    b =

    3
    1

    >> a*b

    ans =

    6
    9

  114. 1)

    >> A=[1 2 3
    4 5 6]

    A =

    1 2 3
    4 5 6

    >> B=[7 8 9
    0 1 2]

    B =

    7 8 9
    0 1 2

    >> A+B

    ans =

    8 10 12
    4 6 8

    >> A-B

    ans =

    -6 -6 -6
    4 4 4

    2)
    >> A=[1 0 -1]

    A =

    1 0 -1

    >> B=[4
    3
    2]

    B =

    4
    3
    2

    >> A*B

    ans =

    2

    3)
    >> A=[1 0
    1 1]

    A =

    1 0
    1 1

    >> B=[2 3
    4 1]

    B =

    2 3
    4 1

    >> C=[1 1 2
    0 2 3]

    C =

    1 1 2
    0 2 3

    >> A*B

    ans =

    2 3
    6 4

    >> B*A

    ans =

    5 3
    5 1

    >> A*C

    ans =

    1 1 2
    1 3 5

    >> C*A
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.

    5)

    A =

    3 0
    0 2

    >> B=[1 2 3
    4 5 6]

    B =

    1 2 3
    4 5 6

    >> A*B

    ans =

    3 6 9
    8 10 12

    >> A=[1 2 3
    4 5 6]

    A =

    1 2 3
    4 5 6

    >> B=[2 0 0
    0 3 0
    0 0 1]

    B =

    2 0 0
    0 3 0
    0 0 1

    >> A*B

    ans =

    2 6 3
    8 15 6

  115. Risyaf Hermada Fikri
    10.11.4527
    S1 TI M

    1)
    a=[1 2 3;4 5 6]
    a =
    1 2 3
    4 5 6
    b=[7 8 9;0 1 2]
    b =
    7 8 9
    0 1 2
    a+b
    ans =
    8 10 12
    4 6 8
    a-b
    ans =
    -6 -6 -6
    4 4 4
    2)
    a= [1 0 -1]
    a =
    1 0 -1
    b= [4;3;2]
    b =
    4
    3
    2
    a*b
    ans =
    2
    3)
    a=[1 0;1 1]
    a =
    1 0
    1 1
    b=[2 3;4 1]
    b =
    2 3
    4 1
    c=[1 1 2;0 2 3]
    c =
    1 1 2
    0 2 3
    a*b
    ans =
    2 3
    6 4
    b*a
    ans =
    5 3
    5 1
    a*c
    ans =
    1 1 2
    1 3 5
    b*c
    ans =
    2 8 13
    4 6 11
    4)
    [3 0;0 2]*[1 2 3;4 5 6]
    ans =
    3 6 9
    8 10 12
    [1 2 3;4 5 6]*[2 0 0;0 3 0;0 0 1]
    ans =
    2 6 3
    8 15 6

  116. 1)>> a=[1 2 3;4 5 6]

    a =

    1 2 3

    4 5 6

    >> b=[7 8 9;0 1 2]

    b =

    7 8 9

    0 1 2

    >> a+b

    ans =

    8 10 12

    4 6 8

    >> a-b

    ans =

    -6 -6 -6

    4 4 4

    2)>> a= [1 0 -1]

    a =

    1 0 -1

    >> b= [4;3;2]

    b =

    4

    3

    2

    >> a*b

    ans =

    2

    3)>>A=[1 0;1 1]

    A =

    1 0

    1 1

    >> B=[2 3;4 1]

    B =

    2 3

    4 1

    >> C=[1 1 2;0 2 3]

    C =

    1 1 2

    0 2 3

    >> A*B

    ans =

    2 3

    6 4

    >> B*A

    ans =

    5 3

    5 1

    >> A*C

    ans =

    1 1 2

    1 3 5

    >> B*C

    ans =

    2 8 13 4 6 11

    4)>> [3 0;0 2]*[1 2 3;4 5 6]

    ans =

    3 6 9

    8 10 12

    >> [1 2 3;4 5 6]*[2 0 0;0 3 0;0 0 1]

    ans =

    2 6 3

    8 15 6

  117. Menggunakan MATLAB 7.10
    //*maaf kalau doube post
    Nama : M. Ervan Wirawan
    NIM : 10.11.4513
    Kelas : S1 TI 1M

    1)
    >> a=[1 2 3;4 5 6]

    a =

    1 2 3
    4 5 6

    >> b=[7 8 9;0 1 2]

    b =

    7 8 9
    0 1 2

    >> a+b

    ans =

    8 10 12
    4 6 8

    >> a-b

    ans =

    -6 -6 -6
    4 4 4

    2)
    >> a= [1 0 -1]

    a =

    1 0 -1

    >> b= [4;3;2]

    b =

    4
    3
    2

    >> a*b

    ans =

    2

    3)
    >>A=[1 0;1 1]

    A =

    1 0
    1 1

    >> B=[2 3;4 1]

    B =

    2 3
    4 1

    >> C=[1 1 2;0 2 3]

    C =

    1 1 2
    0 2 3

    >> A*B

    ans =

    2 3
    6 4

    >> B*A

    ans =

    5 3
    5 1

    >> A*C

    ans =

    1 1 2
    1 3 5

    >> B*C

    ans =

    2 8 13
    4 6 11

    4)
    >> [3 0;0 2]*[1 2 3;4 5 6]

    ans =

    3 6 9
    8 10 12

    >> [1 2 3;4 5 6]*[2 0 0;0 3 0;0 0 1]

    ans =

    2 6 3
    8 15 6

  118. Menggunakan MATLAB 7.10

    Nama : M. Ervan Wirawan
    NIM : 10.11.4513
    Kelas : S1 TI 1M

    1)
    >> a=[1 2 3;4 5 6]

    a =

    1 2 3
    4 5 6

    >> b=[7 8 9;0 1 2]

    b =

    7 8 9
    0 1 2

    >> a+b

    ans =

    8 10 12
    4 6 8

    >> a-b

    ans =

    -6 -6 -6
    4 4 4

    2)
    >> a= [1 0 -1]

    a =

    1 0 -1

    >> b= [4;3;2]

    b =

    4
    3
    2

    >> a*b

    ans =

    2

    3)
    >>A=[1 0;1 1]

    A =

    1 0
    1 1

    >> B=[2 3;4 1]

    B =

    2 3
    4 1

    >> C=[1 1 2;0 2 3]

    C =

    1 1 2
    0 2 3

    >> A*B

    ans =

    2 3
    6 4

    >> B*A

    ans =

    5 3
    5 1

    >> A*C

    ans =

    1 1 2
    1 3 5

    >> B*C

    ans =

    2 8 13
    4 6 11

    4)
    >> [3 0;0 2]*[1 2 3;4 5 6]

    ans =

    3 6 9
    8 10 12

    >> [1 2 3;4 5 6]*[2 0 0;0 3 0;0 0 1]

    ans =

    2 6 3
    8 15 6

  119. 1. ans =

    -6 -6 -6
    4 4 4
    2. >> a.*b

    ans =

    4 0 -2
    3. >> a.*b

    ans =

    2 0
    4 1

    >> b.*a

    ans =

    2 0
    4 1
    5.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s