Program Matriks (Kelas 1N)

Program matriks bagi kelas 1N

  1. Silahkan menuliskan program matriks 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.

67 Responses

  1. I. Exercises and Problems
    Exercises
    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

    Exercises 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
    Exercises 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 ==> +
    Matrix dimensions must agree.
    >> A
    A =

    1 0 -1

    1 1 2
    >> 3*B
    ans =

    6 6

    3 -6b. >> 2*A – 3*C
    ans =

    -1 -3 -2

    -4 -1 4
    exercises 4
    a. >> X = C-3*A
    X =

    -2 1 3

    -1 -2 -6

    Exercises 5
    >> syms(‘x’)
    >> syms(‘y’)
    >> syms(‘z’)
    a. >> [x+2*y ; 2*x-z]
    ans =
    [ x+2*y]
    [ 2*x-z]

    Exercises 6
    >> syms(‘x’)
    >> syms(‘y’)
    >> syms(‘z’)
    >> syms(‘w’)
    a. >> [3*x+y ; x+y+z]
    ans =
    [ 3*x+y]
    [ x+y+z]
    b. >> [3*x+2*y-w ; w-z ; x+y-2*w]
    ans =
    [ 3*x+2*y-w]
    [ w-z]
    [ x+y-2*w]

    Part II
    Exercises 1
    >> 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
    a. >> b*c*a
    ans =
    11.0000 + 3.0000i

    b. >> a*b
    ans =

    6 8

    3 4
    c. >> c*b
    ??? Error using ==> *
    Inner matrix dimensions must agree.

    Exercise 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 ==> *
    Inner matrix dimensions must agree.

    Exercise 5
    >> A=[2 -1 1 ; 2 3 -2 ; 4 2 -2]
    A =

    2 -1 1

    2 3 -2

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

    2

    -3

    1
    >> a=[x;y;z]
    a =
    [ x]
    [ y]
    [ z]
    >> X=[x 0 0 ; 0 y 0 ; 0 0 z]
    X =
    [ x, 0, 0]
    [ 0, y, 0]
    [ 0, 0, z]
    >> X*A*b+A*a
    ans =
    [ 10*x-y+z]
    [ -4*y+2*x-2*z]
    [ 4*x+2*y-2*z]

    >> X*A*b+A*a=[3;1;2]
    ??? Error: Assignment statements cannot produce a result.

  2. Exercises and Problems
    Exercises
    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

    Exercises 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
    Exercises 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 ==> +
    Matrix dimensions must agree.
    >> A
    A =

    1 0 -1

    1 1 2
    >> 3*B
    ans =

    6 6

    3 -6b. >> 2*A – 3*C
    ans =

    -1 -3 -2

    -4 -1 4
    exercises 4
    a. >> X = C-3*A
    X =

    -2 1 3

    -1 -2 -6

    Exercises 5
    >> syms(‘x’)
    >> syms(‘y’)
    >> syms(‘z’)
    a. >> [x+2*y ; 2*x-z]
    ans =
    [ x+2*y]
    [ 2*x-z]

    Exercises 6
    >> syms(‘x’)
    >> syms(‘y’)
    >> syms(‘z’)
    >> syms(‘w’)
    a. >> [3*x+y ; x+y+z]
    ans =
    [ 3*x+y]
    [ x+y+z]
    b. >> [3*x+2*y-w ; w-z ; x+y-2*w]
    ans =
    [ 3*x+2*y-w]
    [ w-z]
    [ x+y-2*w]

    Part II
    Exercises 1
    >> 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
    a. >> b*c*a
    ans =
    11.0000 + 3.0000i

    b. >> a*b
    ans =

    6 8

    3 4
    c. >> c*b
    ??? Error using ==> *
    Inner matrix dimensions must agree.

    Exercise 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 ==> *
    Inner matrix dimensions must agree.

    Exercise 5
    >> A=[2 -1 1 ; 2 3 -2 ; 4 2 -2]
    A =

    2 -1 1

    2 3 -2

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

    2

    -3

    1
    >> a=[x;y;z]
    a =
    [ x]
    [ y]
    [ z]
    >> X=[x 0 0 ; 0 y 0 ; 0 0 z]
    X =
    [ x, 0, 0]
    [ 0, y, 0]
    [ 0, 0, z]
    >> X*A*b+A*a
    ans =
    [ 10*x-y+z]
    [ -4*y+2*x-2*z]
    [ 4*x+2*y-2*z]

    >> X*A*b+A*a=[3;1;2]

  3. 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(1)*B(1)+A(2)*B(2)+A(3)*B(3)

    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

    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

  4. Nama : Alif Aziz
    NIM :10.114615

    I. Exercises and Problems
    Exercises
    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

    Exercises 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
    Exercises 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 ==> +
    Matrix dimensions must agree.
    >> A
    A =

    1 0 -1

    1 1 2
    >> 3*B
    ans =

    6 6

    3 -6b. >> 2*A – 3*C
    ans =

    -1 -3 -2

    -4 -1 4
    exercises 4
    a. >> X = C-3*A
    X =

    -2 1 3

    -1 -2 -6

    Exercises 5
    >> syms(‘x’)
    >> syms(‘y’)
    >> syms(‘z’)
    a. >> [x+2*y ; 2*x-z]
    ans =
    [ x+2*y]
    [ 2*x-z]

    Exercises 6
    >> syms(‘x’)
    >> syms(‘y’)
    >> syms(‘z’)
    >> syms(‘w’)
    a. >> [3*x+y ; x+y+z]
    ans =
    [ 3*x+y]
    [ x+y+z]
    b. >> [3*x+2*y-w ; w-z ; x+y-2*w]
    ans =
    [ 3*x+2*y-w]
    [ w-z]
    [ x+y-2*w]

    Part II
    Exercises 1
    >> 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
    a. >> b*c*a
    ans =
    11.0000 + 3.0000i

    b. >> a*b
    ans =

    6 8

    3 4
    c. >> c*b
    ??? Error using ==> *
    Inner matrix dimensions must agree.

    Exercise 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 ==> *
    Inner matrix dimensions must agree.

    Exercise 5
    >> A=[2 -1 1 ; 2 3 -2 ; 4 2 -2]
    A =

    2 -1 1

    2 3 -2

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

    2

    -3

    1
    >> a=[x;y;z]
    a =
    [ x]
    [ y]
    [ z]
    >> X=[x 0 0 ; 0 y 0 ; 0 0 z]
    X =
    [ x, 0, 0]
    [ 0, y, 0]
    [ 0, 0, z]
    >> X*A*b+A*a
    ans =
    [ 10*x-y+z]
    [ -4*y+2*x-2*z]
    [ 4*x+2*y-2*z]

    >> X*A*b+A*a=[3;1;2]
    ??? Error: Assignment statements cannot produce a result.

  5. tutut heryanti
    10.21.0550
    s1tt-1a
    I. 1c.
    A= input(‘masukkan nilai A = ‘);
    B= input(‘masukkan nilai B = ‘);
    C= (2*A)+(3*B);
    disp(C);

    output :
    masukkan nilai A = [1 4;0 0]
    masukkan nilai B = [0 0;2 1]
    2 8
    6 3

    1d. tidak bisa mengerjakan

    2c,d.
    A= input(‘masukkan nilai A = ‘);
    B= input(‘masukkan nilai B = ‘);
    P= input(‘masukkan nilai P = ‘);
    Q= input(‘masukkan nilai Q = ‘);
    C= A+(-4*B);
    disp(C)
    D= (4*P)-(2*Q);
    disp(D);

    output :

    masukkan nilai A = [1 4 2;1 0 3]
    masukkan nilai B = [0 0 1;2 1 -2]
    masukkan nilai P = [0 1 -1;2 0 2;0 2 0]
    masukkan nilai Q = [0 2 0;-3 0 1;1 -2 0]
    1 4 -2
    -7 -4 11

    0 0 -4
    14 0 6
    -2 12 0

    3c
    script :
    A= input(‘masukkan nilai A = ‘);
    C= input(‘masukkan nilai C = ‘);
    D= A-C;
    disp(D)

    output :
    masukkan nilai A = [1 0 -1;1 1 2]
    masukkan nilai C = [1 1 0;2 1 0]
    0 -1 -1
    -1 0 2

    3d
    >> konstxmatrik(6,[2 2;1 -2])

    ans =

    12 12
    6 -12

    >> tambahmatrik(ans,[1 1 0;2 1 0])

    ans =

    0

    >> if(ans==0)
    disp(‘matrik salah’)
    end
    matrik salah

    4b
    >> konstbagimatrik(ans,3)

    ans =

    0.6667 1.0000 0.3333
    1.6667 0.6667 -0.6667

    >> konstxmatrik(-1,ans)

    ans =

    -0.6667 -1.0000 -0.3333
    -1.6667 -0.6667 0.6667

    5b. tidak bisa mengerjakan
    6c. tidak bisa mengerjakan
    10.

  6. I. 1c.
    A= input(‘masukkan nilai A = ‘);
    B= input(‘masukkan nilai B = ‘);
    C= (2*A)+(3*B);
    disp(C);

    output :
    masukkan nilai A = [1 4;0 0]
    masukkan nilai B = [0 0;2 1]
    2 8
    6 3

    1d. tidak bisa mengerjakan

    2c,d.
    A= input(‘masukkan nilai A = ‘);
    B= input(‘masukkan nilai B = ‘);
    P= input(‘masukkan nilai P = ‘);
    Q= input(‘masukkan nilai Q = ‘);
    C= A+(-4*B);
    disp(C)
    D= (4*P)-(2*Q);
    disp(D);

    output :

    masukkan nilai A = [1 4 2;1 0 3]
    masukkan nilai B = [0 0 1;2 1 -2]
    masukkan nilai P = [0 1 -1;2 0 2;0 2 0]
    masukkan nilai Q = [0 2 0;-3 0 1;1 -2 0]
    1 4 -2
    -7 -4 11

    0 0 -4
    14 0 6
    -2 12 0

    3c
    script :
    A= input(‘masukkan nilai A = ‘);
    C= input(‘masukkan nilai C = ‘);
    D= A-C;
    disp(D)

    output :
    masukkan nilai A = [1 0 -1;1 1 2]
    masukkan nilai C = [1 1 0;2 1 0]
    0 -1 -1
    -1 0 2

    3d
    >> konstxmatrik(6,[2 2;1 -2])

    ans =

    12 12
    6 -12

    >> tambahmatrik(ans,[1 1 0;2 1 0])

    ans =

    0

    >> if(ans==0)
    disp(‘matrik salah’)
    end
    matrik salah

    4b
    >> konstbagimatrik(ans,3)

    ans =

    0.6667 1.0000 0.3333
    1.6667 0.6667 -0.6667

    >> konstxmatrik(-1,ans)

    ans =

    -0.6667 -1.0000 -0.3333
    -1.6667 -0.6667 0.6667

    5b. tidak bisa mengerjakan
    6c. tidak bisa mengerjakan

  7. muhammad reza fahryan ( 10.11.4601 )

    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

  8. nama : lusi yoandari br sembiring
    nim : 10.11.4571

    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

  9. nama : lusi yoandari br sembiring
    kelas : S1 TI 1N
    nim : 10.11.4571

    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

  10. nama : lusi yoandari br sembiring
    kelas : S1 TI 1N
    nim : 10.11.4571

    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

  11. nama : Agung Okta Fiyanto
    nim: 10.11.4608

    a1) >> 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 (DEFINED)
    ans = 1 1 2
    1 3 5
    >> C*A (NOT DEFINED)
    ??? Error using ==> *
    Inner matrix dimensions must agree.

    5) >> A=[3 0;0 2]
    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

    >> C=[1 2 3;4 5 6]
    C = 1 2 3
    4 5 6

    >> D=[2 0 0;0 3 0;0 0 1]
    D = 2 0 0
    0 3 0
    0 0 1

    >> C*D

    ans = 2 6 3
    8 15 6

  12. No.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
    No.2
    >> a=[1,0,-1]
    a =
    1 0 -1
    >> b=[4;3;2]
    b =
    4
    3
    2
    >> a*b
    ans =
    2
    No.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 ==> *
    Inner matrix dimensions must agree.

    No.5
    >> A=[3,0;0,2]
    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
    >> C=[2,0,0;0,3,0;0,0,1]
    C =
    2 0 0
    0 3 0
    0 0 1
    >> B*C
    ans =
    2 6 3
    8 15 6

  13. No.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
    No.2
    >> a=[1,0,-1]
    a =
    1 0 -1
    >> b=[4;3;2]
    b =
    4
    3
    2
    >> a*b
    ans =
    2
    No.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 ==> *
    Inner matrix dimensions must agree.

    No.5
    >> A=[3,0;0,2]
    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
    >> C=[2,0,0;0,3,0;0,0,1]
    C =
    2 0 0
    0 3 0
    0 0 1
    >> B*C
    ans =
    2 6 3
    8 15 6

  14. 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
    ??? Error using ==> *
    Inner matrix dimensions must agree.

    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

    >>

    5
    >> A=[3, 0; 0, 2]

    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

    >>

  15. Nama : MUHAMMAD SYAIFA ROSYAD
    NIM : 10.11.4581
    kelas: S1-TI-1N
    Menggunakan program MATLAB 7.10

    no 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

    jawaban
    >> a+b

    ans =

    8 10 12
    4 6 8

    >> a-b

    ans =

    -6 -6 -6
    4 4 4

    no 2)
    >> a= [1 0 -1]

    a =

    1 0 -1

    >> b= [4;3;2]

    b =

    4
    3
    2

    jawaban
    >> a*b

    ans =

    2

    no 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

    jawaban
    >> 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

    no 4)
    >> [3 0;0 2]*[1 2 3;4 5 6]

    jawaban
    ans =

    3 6 9
    8 10 12

    >> [1 2 3;4 5 6]*[2 0 0;0 3 0;0 0 1]

    jawaban
    ans =

    2 6 3
    8 15 6

  16. 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

    1. >> 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]
    A = 3 0
    0 2
    >> B=[1 2 3 ; 4 5 6]
    B = 1 2 3
    4 5 6
    >> C=[2 0 0 ; 0 3 0 ; 0 0 1]
    C = 2 0 0
    0 3 0
    0 0 1

    >> A*B
    ans = 3 6 9
    8 10 12
    >> B*C
    ans = 2 6 3
    8 15 6

  17. 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
    5. >> A=[3 0;0 2]
    A = 3 0
    0 2
    >> B=[1 2 3 ; 4 5 6]
    B = 1 2 3
    4 5 6
    >> C=[2 0 0 ; 0 3 0 ; 0 0 1]
    C = 2 0 0
    0 3 0
    0 0 1

    >> A*B
    ans = 3 6 9
    8 10 12
    >> B*C
    ans = 2 6 3
    8 15 6

  18. 1)answer——————————

    –>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)answer——————————

    –>A=[1,0,-1]
    A =

    1. 0. – 1.

    –>B=[4,3,2]
    B =

    4. 3. 2.

    –>A*B
    !–error 10
    Inconsistent multiplication.

    –>

    –>(1*4)+(0*3)+(-1*2)
    ans =

    2.

    –>

    3)answer——————————-

    –>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 10
    Inconsistent multiplication.

    4)answer————————————-

    –>[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.

  19. Muhammad Burhan Kurniawan
    S1 TI N
    10.11.4556

    No.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

    No.2
    >> a=[1,0,-1]

    a =

    1 0 -1

    >> b=[4;3;2]

    b =

    4

    3

    2

    >> a*b

    ans =

    2

    No.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 ==> *
    Inner matrix dimensions must agree.

    No.5
    >> A=[3,0;0,2]

    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

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

    C =

    2 0 0

    0 3 0

    0 0 1

    >> B*C

    ans =

    2 6 3

    8 15 6

  20. Nama : Arfan Kurniawan
    NIM : 10.11.4592
    Kelas : S1 TI 1N

    Menggunakan program MATLAB 7.10

    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

    5)

    >> [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

  21. nama : Fatkhu Rohman
    nim :10.11.4590

    No.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

    No.2

    >> a=[1,0,-1]
    a =
    1 0 -1
    >> b=[4;3;2]
    b =
    4
    3
    2
    >> a*b
    ans =
    2

    No.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 ==> *
    Inner matrix dimensions must agree.

    No.5

    >> A=[3,0;0,2]
    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
    >> C=[2,0,0;0,3,0;0,0,1]
    C =
    2 0 0
    0 3 0
    0 0 1
    >> B*C
    ans =
    2 6 3
    8 15 6

  22. andika yusup
    10.11.4595
    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 (DEFINED)
    ans =
    1 1 2
    1 3 5
    >> C*A (NOT DEFINED)
    ??? Error using ==> *
    Inner matrix dimensions must agree.
    5) >> A=[3 0;0 2]
    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
    >> C=[1 2 3;4 5 6]
    C =
    1 2 3
    4 5 6
    >> D=[2 0 0;0 3 0;0 0 1]
    D =
    2 0 0
    0 3 0
    0 0 1
    >> C*D
    ans =
    2 6 3
    8 15 6

  23. syafrullah anggie fauzie
    10.11.4565
    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 (DEFINED)
    ans =
    1 1 2
    1 3 5
    >> C*A (NOT DEFINED)
    ??? Error using ==> *
    Inner matrix dimensions must agree.
    5) >> A=[3 0;0 2]
    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
    >> C=[1 2 3;4 5 6]
    C =
    1 2 3
    4 5 6
    >> D=[2 0 0;0 3 0;0 0 1]
    D =
    2 0 0
    0 3 0
    0 0 1
    >> C*D
    ans =
    2 6 3
    8 15 6

  24. Nama : Yuda Hadi Prayoko
    NIM : 10.11.4594
    S1-TI-1N

    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

  25. Nama : Ricad Alexius Barutu
    NIM : 10.11.4584
    S1-TI-1N

    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

  26. Nama : Aloisius Chris Cahyo Utomo
    NIM : 10.11.4563
    Kelas : S1-TI-1N

    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

  27. Joko Prasetyo
    10.11.4597
    S1 TI 1 N

    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
    ==> mtimesInner matrix dimensions must agree.

    5.)
    >> A=[3 0; 0 2]
    A =
    3 0
    0 2
    >> B=[1 2 3; 4 5 6]
    B =
    1 2 3
    4 5 6
    >> C=[2 0 0; 0 3 0; 0 0 1]
    C =
    2 0 0
    0 3 0
    0 0 1
    >> A*B
    ans =
    3 6 9
    8 10 12
    >> B*C
    ans =
    2 6 3
    8 15 6

  28. Aditya Nugraha
    10.11.4583

    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
    >> dot(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
    >> AB=A*B
    AB =
    2 3
    6 4
    >> BA=B*A
    BA =
    5 3
    5 1
    >> AC=A*C
    AC =
    1 1 2
    1 3 5
    >> CA=C*A
    ??? Error using ==> mtimes
    Inner matrix dimensions must agree.

    5. >>
    >> [3 0;0 2]
    ans =
    3 0
    0 2
    >> [1 2 3;4 5 6]
    ans =
    1 2 3
    4 5 6
    >> [3 0;0 2]*[1 2 3; 4 5 6]
    ans =
    3 6 9
    8 10 12
    >> [1 2 3;4 5 6]
    ans =
    1 2 3
    4 5 6
    >> [2 0 0;0 3 0;0 0 1]
    ans =
    2 0 0
    0 3 0
    0 0 1
    >> [1 2 3;4 5 6]*[2 0 0;0 3 0;0 0 1]
    ans =
    2 6 3
    8 15 6

  29. Nama : MARLIYA RAHMAWATI YAAS
    Nim : 10.11.4569
    Kelas : 1 N

    >> 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
    No,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
    No.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

  30. matlab
    erwan dwi prasetyo
    10.11.4564

    No.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
    No,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
    No.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

  31. >> 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
    No,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
    No.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

  32. matlab
    nama : erwan dwi prasetyo
    nim : 10.11.4564

    No.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
    No,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
    No.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

  33. >> 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
    No,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
    No.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

    nama rian widodo
    nim 10.11.4579

  34. Nama : Alif Aziz
    NIM : 10.11.4615
    Kelas :S1-T1 N

    No.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
    No,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
    No.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

  35. Nama : Fikria Rifdania R
    Nim : 10.11.4591

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

    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

  36. Nama

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

    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

  37. Nama : Raden Ayu Atika Diah S
    NIM : 10.11.4566

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

    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

  38. SEPTIFANI MADIANINGRUM
    NIM : 10.11.4551

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

    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

  39. Nama : Veri Hendra Hikmawan
    NIM : 10.11.4582
    Kelas : S1 TI-1N

    **Menggunakan Matlab 7.10

    Nomor 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

    Nomor 2 :

    >> a= [1 0 -1]
    a =
    1 0 -1
    >> b= [4;3;2]
    b =
    4
    3
    2
    >> a*b
    ans =
    2

    Nomor 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

    Nomor 5 :

    >> [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

  40. Nama : Veri Hendra Hikmawan
    NIM : 10.11.4582
    Kelas : S1 TI – 1N

    **Menggunakan Matlab 7.10

    Nomor 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

    Nomor 2 :

    >> a= [1 0 -1]
    a =
    1 0 -1
    >> b= [4;3;2]
    b =
    4
    3
    2
    >> a*b
    ans =
    2

    Nomor 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

    Nomor 5 :

    >> [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

  41. nama : RIAN ADI WIBOWO
    NIM : 10.11.4546
    kelas : S1-TI N

    1. >> A = [1 2 3;4 5 6], B = [7 8 9;0 1 2]

    A =

    1 2 3
    4 5 6

    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. >> VECTOR_A = [1,0,-1], VECTOR_B = [4,3,2]

    VECTOR_A =

    1 0 -1

    VECTOR_B =

    4 3 2

    >> A = VECTOR_A, B = VECTOR_B’

    A =

    1 0 -1

    B =

    4
    3
    2

    >> A * B

    ans =

    2

    3. >> A = [1 0;1 1], B = [2 3;4 1], C = [1 1 2;0 2 3]

    A =

    1 0
    1 1

    B =

    2 3
    4 1

    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 ==> *
    Inner matrix dimensions must agree.

    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

  42. nama : RIAN ADI WIBOWO
    NIM : 10.11.4546
    kelas : S1-TI N

    1. >> A = [1 2 3;4 5 6], B = [7 8 9;0 1 2]

    A =

    1 2 3
    4 5 6

    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. >> VECTOR_A = [1,0,-1], VECTOR_B = [4,3,2]

    VECTOR_A =

    1 0 -1

    VECTOR_B =

    4 3 2

    >> A = VECTOR_A, B = VECTOR_B’

    A =

    1 0 -1

    B =

    4
    3
    2

    >> A * B

    ans =

    2

    3. >> A = [1 0;1 1], B = [2 3;4 1], C = [1 1 2;0 2 3]

    A =

    1 0
    1 1

    B =

    2 3
    4 1

    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 ==> *
    Inner matrix dimensions must agree.

    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

  43. LALU ISPANDI AKBAR
    10.11.4576
    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 (DEFINED)
    ans =
    1 1 2
    1 3 5
    >> C*A (NOT DEFINED)
    ??? Error using ==> *
    Inner matrix dimensions must agree.
    5) >> A=[3 0;0 2]
    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
    >> C=[1 2 3;4 5 6]
    C =
    1 2 3
    4 5 6
    >> D=[2 0 0;0 3 0;0 0 1]
    D =
    2 0 0
    0 3 0
    0 0 1
    >> C*D
    ans =
    2 6 3
    8 15 6

  44. 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]

    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.

    4.

    A =

    3 0
    0 2

    >> B=[1 2 3; 4 5 6]

    B =

    1 2 3
    4 5 6

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

    C =

    2 0 0
    0 3 0
    0 0 1

    >> A*B

    ans =

    3 6 9
    8 10 12

    >> B*C

    ans =

    2 6 3
    8 15 6

  45. 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]

    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.

    4.

    A =

    3 0
    0 2

    >> B=[1 2 3; 4 5 6]

    B =

    1 2 3
    4 5 6

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

    C =

    2 0 0
    0 3 0
    0 0 1

    >> A*B

    ans =

    3 6 9
    8 10 12

    >> B*C

    ans =

    2 6 3
    8 15 6

  46. 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]

    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.

    4.

    A =

    3 0
    0 2

    >> B=[1 2 3; 4 5 6]

    B =

    1 2 3
    4 5 6

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

    C =

    2 0 0
    0 3 0
    0 0 1

    >> A*B

    ans =

    3 6 9
    8 10 12

    >> B*C

    ans =

    2 6 3
    8 15 6

  47. Nama : Joko Tri Purwanto
    Nim : 10.11.4561

    No.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
    No.2
    >> a=[1,0,-1]
    a =
    1 0 -1
    >> b=[4;3;2]
    b =
    4
    3
    2
    >> a*b
    ans =
    2
    No.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 ==> *
    Inner matrix dimensions must agree.
    No.5
    >> A=[3,0;0,2]
    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
    >> C=[2,0,0;0,3,0;0,0,1]
    C =
    2 0 0
    0 3 0
    0 0 1
    >> B*C
    ans =
    2 6 3
    8 15 6

  48. Nama : Joko Tri Purwanto
    Nim : 10.11.4561
    Kelas : S1-TI 1N
    No.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
    No.2
    >> a=[1,0,-1]
    a =
    1 0 -1
    >> b=[4;3;2]
    b =
    4
    3
    2
    >> a*b
    ans =
    2
    No.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 ==> *
    Inner matrix dimensions must agree.
    No.5
    >> A=[3,0;0,2]
    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
    >> C=[2,0,0;0,3,0;0,0,1]
    C =
    2 0 0
    0 3 0
    0 0 1
    >> B*C
    ans =
    2 6 3
    8 15 6

  49. Tugas Matriks
    Muh Rais Ulil Albab (NIM : 11.10.4586)

    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
    ==> mtimesInner matrix dimensions must agree.

    5.)

    >> A=[3 0; 0 2]
    A =
    3 0
    0 2
    >> B=[1 2 3; 4 5 6]
    B =
    1 2 3
    4 5 6
    >> C=[2 0 0; 0 3 0; 0 0 1]
    C =
    2 0 0
    0 3 0
    0 0 1
    >> A*B
    ans =
    3 6 9
    8 10 12
    >> B*C
    ans =
    2 6 3
    8 15 6

  50. Nama : Wegig Yoga Yunanta
    NIM : 10.11.4607

    No.1
    >> Matrix1=[1 2 3; 4 5 6]

    Matrix1 =

    1 2 3
    4 5 6

    >> Matrix2=[7 8 9; 0 1 2]

    Matrix2 =

    7 8 9
    0 1 2

    >> Matrix1 + Matrix2

    ans =

    8 10 12
    4 6 8

    >> Matrix1 – Matrix2

    ans =

    -6 -6 -6
    4 4 4

    No.2
    >> vektor1=[1, 0, -1]

    vektor1 =

    1 0 -1

    >> vektor2=[4 3 2]

    vektor2 =

    4 3 2
    >> vektor1.*vektor2

    ans =

    4 0 -2

    >> 4 + 0 -2

    ans =

    2

    No.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.

    No.5
    >> A=[3 0; 0 2]

    A =

    3 0
    0 2

    >> B=[1 2 3; 4 5 6]

    B =

    1 2 3
    4 5 6

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

    C =

    2 0 0
    0 3 0
    0 0 1

    >> A*B

    ans =

    3 6 9
    8 10 12

    >> B*C

    ans =

    2 6 3
    8 15 6

  51. NAMA : PRANATA UTAMA
    KELAS : S1-TI N
    NIM : 10.11.4548

    ###[ SOAL 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

    ###[ SOAL 2 ]###

    >> a= [1, 0, -1]
    a =
    1 0 -1
    >> b= [4, 3, 2]
    b =
    4 3 2
    >> a*b
    ??? Error using ==> *
    Inner matrix dimensions must agree.
    >> a*b’
    ans =
    2

    ###[ SOAL 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 ==> *
    Inner matrix dimensions must agree.

    ###[ SOAL 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

  52. NAMA : PRANATA UTAMA
    KELAS : S1-TI N
    NIM : 10.11.4548

    ###[ SOAL 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

    ###[ SOAL 2 ]###

    >> a= [1, 0, -1]
    a =
    1 0 -1
    >> b= [4, 3, 2]
    b =
    4 3 2
    >> a*b
    ??? Error using ==> *
    Inner matrix dimensions must agree.
    >> a*b’
    ans =
    2

    ###[ SOAL 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 ==> *
    Inner matrix dimensions must agree.

    ###[ SOAL 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

  53. NAMA : PRANATA UTAMA
    KELAS : S1-TI N
    NIM : 10.11.4548

    ###[ JAWABAN SOAL 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

    ###[ JAWABAN SOAL 2 ]###

    >> a= [1, 0, -1]

    a =

    1 0 -1

    >> b= [4, 3, 2]

    b =

    4 3 2

    >> a*b’

    ans =

    2

    ###[ JAWABAN SOAL 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 ==> *
    Inner matrix dimensions must agree.

    ###[ JAWABAN SOAL 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

  54. NAMA : PRANATA UTAMA
    KELAS : S1-TI N
    NIM : 10.11.4548

    ###[ SOAL 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

    ###[ SOAL 2 ]###

    >> a= [1, 0, -1]

    a =

    1 0 -1

    >> b= [4, 3, 2]

    b =

    4 3 2

    >> a*b’

    ans =

    2

    ###[ SOAL 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 ==> *
    Inner matrix dimensions must agree.

    ###[ SOAL 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

  55. Agus Sri Widodo
    10.11.4604
    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 (DEFINED)
    ans =
    1 1 2
    1 3 5
    >> C*A (NOT DEFINED)
    ??? Error using ==> *
    Inner matrix dimensions must agree.
    5) >> A=[3 0;0 2]
    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
    >> C=[1 2 3;4 5 6]
    C =
    1 2 3
    4 5 6
    >> D=[2 0 0;0 3 0;0 0 1]
    D =
    2 0 0
    0 3 0
    0 0 1
    >> C*D
    ans =
    2 6 3
    8 15 6

  56. Agus Sri Widodo
    10.11.4604

    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 (DEFINED)
    ans =
    1 1 2
    1 3 5
    >> C*A (NOT DEFINED)
    ??? Error using ==> *
    Inner matrix dimensions must agree.
    5) >> A=[3 0;0 2]
    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
    >> C=[1 2 3;4 5 6]
    C =
    1 2 3
    4 5 6
    >> D=[2 0 0;0 3 0;0 0 1]
    D =
    2 0 0
    0 3 0
    0 0 1
    >> C*D
    ans =
    2 6 3
    8 15 6

  57. 10.11.4555

    No.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

    No.2
    >> a=[1,0,-1]

    a =

    1 0 -1

    >> b=[4;3;2]

    b =

    4
    3
    2

    >> a*b

    ans =

    2

    No.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 ==> *
    Inner matrix dimensions must agree.

    No.4
    Tidak ada di File Download

    No.5
    >> A=[3,0;0,2]

    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

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

    C =

    2 0 0
    0 3 0
    0 0 1

    >> B*C

    ans =

    2 6 3
    8 15 6

  58. No.1
    >> Matrix1=[1 2 3; 4 5 6]

    Matrix1 =

    1 2 3
    4 5 6

    >> Matrix2=[7 8 9; 0 1 2]

    Matrix2 =

    7 8 9
    0 1 2

    >> Matrix1 + Matrix2

    ans =

    8 10 12
    4 6 8

    >> Matrix1 – Matrix2

    ans =

    -6 -6 -6
    4 4 4

    No.2
    >> vektor1=[1, 0, -1]

    vektor1 =

    1 0 -1

    >> vektor2=[4 3 2]

    vektor2 =

    4 3 2
    >> vektor1.*vektor2

    ans =

    4 0 -2

    >> 4 + 0 -2

    ans =

    2

    No.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

    No.5
    >> A=[3 0; 0 2]

    A =

    3 0
    0 2

    >> B=[1 2 3; 4 5 6]

    B =

    1 2 3
    4 5 6

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

    C =

    2 0 0
    0 3 0
    0 0 1

    >> A*B

    ans =

    3 6 9
    8 10 12

    >> B*C

    ans =

    2 6 3
    8 15 6

  59. 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]

    A =

    3 0
    0 2

    >> B=[1 2 3;4 5 6]

    B =

    1 2 3
    4 5 6

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

    C =

    2 0 0
    0 3 0
    0 0 1

    >> A*B

    ans =

    3 6 9
    8 10 12

    >> B*C

    ans =

    2 6 3
    8 15 6

  60. Happy Alfi Azizah
    10.11.4585

    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 (DEFINED)
    ans =
    1 1 2
    1 3 5
    >> C*A (NOT DEFINED)
    ??? Error using ==> *
    Inner matrix dimensions must agree.

    5) >> A=[3 0;0 2]
    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

    >> C=[1 2 3;4 5 6]
    C =
    1 2 3
    4 5 6

    >> D=[2 0 0;0 3 0;0 0 1]
    D =
    2 0 0
    0 3 0
    0 0 1

    >> C*D

    ans =
    2 6 3
    8 15 6

    (maaf pak td salah kirim ke yg soal exercises)

  61. 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

  62. 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

  63. 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

  64. 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]

    A =

    3 0
    0 2

    >> B=[1 2 3;4 5 6]

    B =

    1 2 3
    4 5 6

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

    C =

    2 0 0
    0 3 0
    0 0 1

    >> A*B

    ans =

    3 6 9
    8 10 12

    >> B*C

    ans =

    2 6 3
    8 15 6

  65. Happy AA
    10.11.4585

    ∫▒〖x^n ArcSech[x]〗 dx

    1/(n+1) x^n [1/((n-1)n x) √((1-x)/(x+1)) √((x+1)/(x-1) ) (x/(x-1))^(1-n) (2nf1(1-n; -n,1/2;2-n; 1/(1-x),-2/(x-1))-(n-1)(x-1) F1(-n; -n,-1/2;1-n; 1/(1-x),-2/(x-1)) )+ 〖x sech〗^(-1) ├ (x)] ┤

    bingung pak , asal ini

  66. Happy Alfi A
    10.11.4585

    x^n ArcSech[x]

    1/(n+1) x^n [1/((n-1)n x) √((1-x)/(x+1)) √((x+1)/(x-1) ) (x/(x-1))^(1-n) (2nf1(1-n; -n,1/2;2-n; 1/(1-x),-2/(x-1))-(n-1)(x-1) F1(-n; -n,-1/2;1-n; 1/(1-x),-2/(x-1)) )+ 〖x sech〗^(-1) ├ (x)] ┤

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