Professional Documents
Culture Documents
NIM : 1015333011
Kelas : II C
Command Window
>> tesif
bonus anda berdasarkan lembur anda selama 30 hari
silahkan mencoba
masukkan jumlah anda lembur dalam seminggu:3
a=
ans =
a=
ans =
Command Window
>> tesfor
Mencari Nilai Fungsi f(x)
f(x)=x.^2 + 5*x + 10
x= 4
nilai fungsi=
46
>> tesfor
Mencari Nilai Fungsi f(x)
f(x)=x.^2 + 5*x + 10
x= 1
nilai fungsi=
16
3. Contoh Penggunaan Loop “switch”
Script m.file (tesswitch.m)
Command Window