You are on page 1of 52

Resume Pertemuan 1-2

Plotting -linespesifier
Plotting - Kontur

Diketahui sistem rangka batang Kuda-kud


Sistem perletakan sendi-roll, Jumlah Reaksi, R = 3
Jumlah buhul/join (A-H)= 8 titik
Jumlah elemen/batang , M = 13 buah
Pembebanan berupa beban titik10 kN
10 kN

10 kN

D
S3
5 kN

B
S1

S2

R2
R1

S8

S4

S7

S9

S5
C

5 kN

F
S11
S13
S6

S10

S13

R3

Diketahui sistem rangka batang Kuda-kud


Tugas 1:
Menghitung gaya batang yang terjadi (S1-S13)
dan reaksi perletakan (R1-R3) dengan
menggunakan MATLAB
10 kN
10 kN

10 kN

D
S3
5 kN

B
S1

S2

R2
R1

S8

S4

S7

S9

S5
C

5 kN

F
S11
S13
S6

S10

S13

R3

Diketahui sistem rangka batang Kuda-kud


Penyelesaian:
Mencari persamaan kesetimbangan pada seluruh
join dengan metode kesetimbangan titik buhul
10 kN
10 kN

10 kN

D
S3
5 kN

B
S1

S2

R2
R1

S8

S4

S7

S9

S5
C

5 kN

F
S11
S13
S6

S10

S13

R3

Diketahui sistem rangka batang Kuda-kud


Metode Kesetimbangan Titik Buhul:
Menguraikan gaya-gaya pada join ke arah vertikal
dan horisontal
10 kN
10 kN

10 kN

D
S3
5 kN

B
S1

S2

R2
R1

S8

S4

S7

S9

S5
C

5 kN

F
S11
S13
S6

S10

S13

R3

10 kN
10 kN

10 kN

D
S3
5 kN

B
S1

S2

R2
R1

S8

S4

S7

S9

S5
C

5 kN

F
S11
S13
S6

S10

S13

R3

10 kN
10 kN

10 kN

D
S3
5 kN

B
S1

S2

R2
R1

S8

S4

S7

S9

S5
C

5 kN

F
S11
S13
S6

S10

S13

R3

10 kN
10 kN

10 kN

D
S3
5 kN

B
S1

S2

R2
R1

S8

S4

S7

S9

S5
C

5 kN

F
S11
S13
S6

S10

S13

R3

10 kN
10 kN

10 kN

D
S3
5 kN

B
S1

S2

R2
R1

S8

S4

S7

S9

S5
C

5 kN

F
S11
S13
S6

S10

S13

R3

10 kN
10 kN

10 kN

D
S3
5 kN

B
S1

S2

R2
R1

S8

S4

S7

S9

S5
C

5 kN

F
S11
S13
S6

S10

S13

R3

10 kN
10 kN

10 kN

D
S3
5 kN

B
S1

S2

R2
R1

S8

S4

S7

S9

S5
C

5 kN

F
S11
S13
S6

S10

S13

R3

10 kN
10 kN

10 kN

D
S3
5 kN

B
S1

S2

R2
R1

S8

S4

S7

S9

S5
C

5 kN

F
S11
S13
S6

S10

S13

R3

10 kN
10 kN

10 kN

D
S3
5 kN

B
S1

S2

R2
R1

S8

S4

S7

S9

S5
C

5 kN

F
S11
S13
S6

S10

S13

R3

R2 + S2 + S1 cos 1 = 0
R1 + S1 sin 1 5kN = 0

Join A

- S1 sin 2 + S3 cos + S4 sin = 0


S3 sin 1 10kN S5 - S4 cos 2 S1 cos 2 = 0
S5 = 0
- S2 +S6 = 0

Join C

-S3 sin 2 + S8 sin = 0


- 10kN S7 S3 cos 2 S8 cos 2 = 0
-S4 cos 1 - S6 + S11 + S9 cos = 0
S4 sin 1 + S7 S9 sin 1 = 0

Join E

-S8 cos 1 S9 sin 2 + S12 sin 2= 0


S8 sin 1 10 kN - S9 cos 2 - S10 - S12 cos 2 = 0
S10 = 0
- S11 + S13 = 0

Join G

- S12 cos 1 S13= 0


S12 sin 1 5kN + R3 = 0

Persamaan
kesetimbangan
seluruh join

Matrik Konstanta Variabel


Matrik Variabel
Matrik Konstanta

clear all
clc
A=[0
1 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0

1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1

0 0.8 1 0 0 0 0 0 0 0 0 0 0 0;
0.6 0 0 0 0 0 0 0 0 0 0 0 0;
-0.8 0 0.8 0.8 0 0 0 0 0 0 0 0 0;
-0.6 0 0.6 -0.6 -1 0 0 0 0 0 0 0 0;
0 0 0 0 1 0 0 0 0 0 0 0 0;
0 -1 0 0 0 1 0 0 0 0 0 0 0;
0 0 -0.8 0 0 0 0 0.8 0 0 0 0 0;
0 0 -0.6 0 0 0 -1 -0.6 0 0 0 0 0;
0 0 0 -0.8 0 -1 0 0 0.8 0 1 0 0;
0 0 0 0.6 0 0 1 0 0.6 0 0 0 0;
0 0 0 0 0 0 0 -0.8 -0.8 0 0 0.8 0;
0 0 0 0 0 0 0 0.6 -0.6 -1 0 -0.6 0;
0 0 0 0 0 0 0 0 0 1 0 0 0;
0 0 0 0 0 0 0 0 0 0 -1 0 1;
0 0 0 0 0 0 0 0 0 0 0 -0.8 -1;
0 0 0 0 0 0 0 0 0 0 0 0.6 0];

C=[0;5;0;10;0;0;0;10;0;0;0;10;0;0;0;5];
B=inv(A)*C %mencari matrik B

B=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=

20.0000
0
20.0000
-25.0000
20.0000
-16.6667
-8.3333
0
20.0000
10.0000
-16.6667
-8.3333
0
20.0000
-25.0000
20.0000

Diketahui struktur kantilever.


Susunlah matrik hitungan gaya batang dan reaksi
perletakannya dengan MATLAB.

Jenis tumpuan
sendi

roll

Reaksi perletakan
sendi
Jumlah
reaksi
perletakan, R
=3

R1
R2
R3

roll

Jumlah gaya batang


S1
S2 S3

Jumlah elemen, M = 1
S6

S5 S7

S4

S8
S9

S10
S11

Jumlah join/buhul

Jumlah join/buhul, J = 7

Syarat agar bisa diselesaikan dengan metode join:


2J=M+R 14=11+3 OK

Analisa kesetimbangan gaya tiap join


R1

S1

R2 S2

R1 G

S1
S2

R2
V=0
-S2+R2=0

H=0
S1+R1=0

S2 bernilai negatif karena arah gaya ke bawah

Analisa
kesetimbangan gaya
tiap join

S2
R3

S3

S4

Kenapa S2
sekarang arahnya
ke atas?
Karena:
Dalam metode join
, asumsi arah gaya
batang yang terjadi
selalu menjauh
dari titik buhul atau
diasumsikan

Analisa
kesetimbangan gaya
Komponen
tiap join
gaya arah
vertikal

S2
R3

S3

S4

V=0
S2+S3 sin1=0

S3 sin1

S2
R3
A

S3

S3 cos1

S4

Komponen
gaya arah
horisontal

H=0
S4+S3 cos1+R3=0

S7 sin2

S5
S4
S5 S7

S7

S7 cos2

S9
5
kN

S4

S9

H=0
V=0
5
kN -5kN=0 -S4+S7 cos +S9=0
S5+S7 sin
2
2

S3 cos1

S1
1

S3

S6

S5

V=0
-S5-S3 sin1-S6 cos3=0

S1

S3

S6 sin3
S6

S5

S6
co

S3 sin1

H=0
-S1-S3 cos1+S6 sin3=0

S6 S6 cos3

S6 s
in
3
S7 sin3

S6
S7

S7
S7 cos3

S10
3
S8

S10 sin3

S1

S8

S10

0c

os

V=0
-S8-S10 cos3-S7 cos3+S6cos3=0
=0
-S6 sin3-S7 sin3+S10sin3=0

S8
S9
5
kN

S8
S9
V=0
-5 kN+S8=0

S11
5
kN

=0
-S9+S11=0

S11

S10
c

S10

os

S10 sin2

S11
S10
2

S11
5
kN

V=0
=0
-5 kN+S10 sin2=0 -S11-S10 cos2=0

5
kN

V=0
-S2+R2=0

H=0
S1+R1=0

V=0
S2+S3 sin1=0

H=0
S4+S3 cos1+R3=0

V=0
S5+S7 sin2-5kN=0

H=0
-S4+S7 cos2+S9=0

V=0
-S5-S3 sin1-S6 cos3=0

H=0
-S1-S3 cos1+S6 sin3=0

V=0
=0
-S8-S10 cos3-S7 cos3+S6cos3=0 -S6 sin3-S7 sin3+S10sin3=0
V=0
-5 kN+S8=0

=0
-S9+S11=0

V=0
-5 kN+S10 sin2=0

=0
-S11-S10 cos2=0

H=0
S1+R1=0
S4+S3 cos1+R3=0
-S4+S7 cos2+S9=0
-S1-S3 cos1+S6 sin3=0
-S6 sin3-S7 sin3+S10sin3=0
-S9+S11=0
-S11-S10 cos2=0

Persamaan
silahkan
dikoreksi.!

V=0
-S2+R2=0
S2+S3 sin1=0
S5+S7 sin2-5kN=0
-S5-S3 sin1-S6 cos3=0
-S8-S10 cos3-S7 cos3+S6cos3=
-5 kN+S8=0
-5 kN+S10 sin2=0

MATLAB Pertemuan 2-3


Dasar Plot Garis Dua Dimensi
Topics Meliputi:
1. Dasar-dasar plotting 2-D.
Command plot.
Plotting beberapa garis/grafik pada grafik yang
sama.
Format plot.

Pembuatan X-Y PLOT


Contoh-contoh grafik yang bisa dibuat dengan MATLAB.

Contoh Plot 2-D

Plot title

Light Intensity as a Function of Distance

1200

y axis
label

Legend
Theory
Experiment

1000

Text

Tick-mark

INTENSITY (lux)

800
Comparison between theory and experiment.
600

400

Data symbol

200

10

12

x axis
label

14

16
DISTANCE (cm)

18

20

22

24

Tick-mark label

Dua Dimensi Command plot()


Dasar command plot 2-D adalah sebagai berikut:

plot(x,y)
di mana x adalah sebuah vector ( deret satu dimensi), and y
adalah sebuah vector.
Kedua vektor harus mempunyai jumlah elemen matrik yang sama.
Command plot membuat sebuah point tunggal dengan nilai

pada absis dan nilai y pada ordinat (vertical axis).


Sebuah kurva/garis terbuat dari segment yang menghubungkan
titik-titik dari dua point.

PLOT DATA
Diketahui data:
x

2
6

10

Sebuah plot dapat dibuat dengan cara menulis program di


MATLAB sebagai berikut:
>> x=[1 2 3 5];
>> y=[2 6 7 10];
>> plot(x,y)

atau
>> plot([1 2 3 5],[2 6 7 10])

Ketika command plot di eksekusi maka Figure Window akan


terbuka dengan isi sesuai plot data yang dieksekusi.

Plot Dari Data

>> x=[1 2 3 5];


>> y=[2 6 7 10];
>> plot(x,y)

Line specifiers / Spesifikasi Garis


dalam command plot()
Line specifiers / tipe garis dapat di tambahkan dalam
command plot untuk:
Membuat spesifikasi tipe garis.
Membuat spesifikasi tipe warna garis.
Membuat spesifikasi markers.

plot(x,y,line specifiers)

Line specifiers / Spesifikasi Garis


dalam command plot()

plot(x,y,line specifiers)

Line
Style
Solid
dotted
dashed
dash-dot

Specifier
:
--.

Line
Color
red
green
blue
Cyan
magenta
yellow
black

Specifier
r
g
b
c
m
y
k

Marker Specifier
Type
plus sign
circle
asterisk
point
square
diamond

+
o
*
.
s
d

Line specifiers / Spesifikasi Garis


dalam command plot()

plot(x,y,line specifiers)

EXAMPLES:
plot(x,y)

Sebuah garis biru penuh tanpa marker.

plot(x,y,r)

Sebuah garis merah penuh tanpa marker.

plot(x,y,--y)

Sebuah garis kuning putus-putus tanpa marker.

plot(x,y,*)

Titik-titik dengan marker * (bintang/asterik).

plot(x,y,g:d)

Sebuah garis titik-titik warna hijau dengan marker diamon

Line specifiers / Spesifikasi Garis


dalam command plot()

plot(x,y,line specifiers)
Year

1988

1989

1990

1991

1992

1993

1994

Sales (M)

127

130

136

145

158

178

211

>> year = [1988:1:1994];


>> sales = [127, 130, 136, 145, 158, 178, 211];
>> plot(year,sales,'--r*')
Line Specifiers:
Putus-putus merah dengan
marker asterik *

HASIL PLOT

FORMAT COMMAND
title(string)
Menambah judul pada window plot atau Figure.

xlabel(string)
Menambah judul koordinat x pada window plot atau Figure.

ylabel(string)
Menambah judul koordinat y pada window plot atau Figure.

axis([xmin xmax ymin ymax])


Seting nilai minimum dan maximum pada x- and y- axis.

FORMAT COMMAND
legend(string1,string2,string3)
Membuat legend dengan lokasi diatur dengan kursor/mouse.

text(x,y,string)
Membuat text dengan lokasi sesuai dengan koordinat x dan y.

gtext(string)
Membuat text dengan lokasi sesuai di mana mouse di-klik. .

Plotting beberapa garis pada window yang sama


Menggunakan command:

hold on,
hold off

Plot dua pasang data di bawah dalam satu grafik menggunakan MATLAB

Kenapa Teknik Sipil Belajar Matrik

Fa
c

60o

b=
Fc

=?

100 ton
C

60o

60o
Fab =?

Catatan Kelas D atau F ???

Fac = gaya yang terjadi


pada batang AC,
Fab = gaya yang terjadi
pada batang AB,
Fbc = gaya yang terjadi
pada batang BC,

Metode joint atau


Metode titik buhul

You might also like