pemrograman matlab menggunakan fungsi fisis

5
KOMPUTASI GEOFISIKA (Tugas 3) Oleh Ahmad Al Imbron 1315051003 JURUSAN TEKNIK GEOFISIKA FAKULTAS TEKNIK UNIVERSITAS LAMPUNG 2015

Upload: ahmad-al-imbron

Post on 12-Sep-2015

18 views

Category:

Documents


3 download

DESCRIPTION

Tugas kuliah yang menereangkan tentang pemrograman Matlab dengan menggunakan pendekatan fisis

TRANSCRIPT

  • KOMPUTASI GEOFISIKA (Tugas 3)

    Oleh

    Ahmad Al Imbron

    1315051003

    JURUSAN TEKNIK GEOFISIKA FAKULTAS TEKNIK

    UNIVERSITAS LAMPUNG 2015

  • 1. Tuliskan program dalam bentuk function suatu fungsi . Plot fungsi tersebut pada batas

    interval -10 s/d +10. Sertakan komentar/keterangan pada tubuh program dan plot hasil

    output program dalam bentuk kurva.

    Jawab:

    -Script program:

    -Command:

    -Grafik yang diperoleh:adalah sebagai berikut ini.

  • 2. Tuliskan program dalam bentuk script dari suatu fungsi sin(x), sin(2x), sin(3x), sin(4x),

    sin(5x) dan sin(6x) dengan batas interval dari 0 s/d 2. Sertakan komentar/keterangan pada

    tubuh program dan plot hasil output program dalam bentuk kurva.

    Catatan: pada matlab ex = exp(x) dan = pi

    Jawab:

    -Script:

    -Command:

    -Grafik:

  • 3. Exp 1: Add a line to the above program to plot the function spn. Add more lines to plot r and

    fiftyHz. Change the value of the weight w and see the effect on the matrix spn.

    Jawab:

    -Script :

    -Grafik:

  • 4. Exp.2: Add lines to the above program to make (and plot) a second 50 Hz sinusoid plus noise

    with the sinusoid amplitude set to 3.0 and the noise weight set to 0.5.

    Jawab:

    -Script :

    -Grafik: