Crash Course Series Teknik Pengairan 2019
SEBRIAN M BESELLY P Malang, 28 November
2019
PROGRAMME
Visualisasi Data – Pentingnya visualisasi data, Persepsi, Grafik yang baik
13.00-14.00
Break 1
14.00-14.10
MATLAB – Dasar-dasar, pemrosesan data, dan visualisasi
14.10-15.10
Break 2
15.10-15.20
MATLAB – Aplikasi pada kasus-kasus teknik pengairan
15.20-16.00
VISUALISASI DATA
Otak kita didesain untuk cepat memproses data dalam bentuk visual
Sejarah visual dalam peradaban
Lukisan Gua di Pulau Muna, sulawesi bagian tenggara
Napoleon’s tragic march to Russia by Charls Joseph Minard (1869)
Water quality risk indices for major river basins
Source
2. WWAP (United Nations World Water Assessment Programme)/UN-Water. 2018. The United Nations World Water
Development Report 2018: Nature-Based Solutions for Water. Paris, UNESCO.
Inflow MSc students in 2018
Memetakan tingkat kriminalitas di Berkeley
Origin and destination of refugees
Pokemon Strategy
Di publikasi ilmiah
Financial Times 1888
Financial Times 1901
Financial Times 1955
Financial Times 2015
https://www.data-to-viz.com/#explore
https://datavizproject.com/
http://colorbrewer2.org/
https://nl.mathworks.com/help/matlab/creating_plo
ts/types-of-matlab-
plots.html?s_eid=PSM_da&source=15308
GOOD CHARTS IN THREE
STEPS
1. Remove the gridlines
2. Remove data markers
3. Clean up axis labels
4. Label data directly
5. Leverage consistent color
CONTOH DI VIDEO
https://www.youtube.com/watch?v=fTznEIZRkLg
Hans Rosling, Population Growth Box by Box
The Fallen of World War II
https://www.youtube.com/watch?v=DwKPFT-RioU
MATLAB
MEMULAI MATLAB
Overview
Memasukkan perintah
Mengisi data ke dalam MATLAB
Mengakses HELP
Matlab Editor
MENGEKSEKUSI PERINTAH
Gunakan operator +-*/
Beri variable m=….
Coba beri perintah m=m+1;
Fungsi clear, clear all, clc, %, ; ,
Fungsi arah panah untuk mengakses history
MENGIMPORT DATA KE
MATLAB
MENGIMPORT DATA KE
MATLAB
Missing data ditulis sebagai NaN
Import data GasPrices
Ubah NaN
Save filename save ke Mat Files
load filename loading mat files
MENGAKSES HELP
Gunakan doc
help filename
PLOTTING
Contoh
Plotting
Menambah keterangan plot
Kontrol sumbu
Export grafik
Akses Mat Files hasil buatan sebelumnya dari Import
AuGeMe
Plot per data
Gunakan hold on hold off
xlabel
ylabel
MEMBUAT DAN
MEMANIPULASI ARRAY
Memasukkan Array
Membuat evenly-spaced array
Membuat evenly-spaced vector
Menyambung (concatenating) array
Fungsi-fungsi untuk membuat array
Merubah bentuk Array
Buat vector: x=[.. .. ..]; atau x=[..;..;..]
Row vector column vector
Transpose vt = v’
The operator ' can also be used to calculate the complex conjugate transpose.
a = [2+3i -1+i];
b = a'
b=
2.0000 - 3.0000i
-1.0000 - 1.0000i
If you want to transpose the vector of complex numbers without calculating the complex conjugate, use the operator .'.
a = [2+3i -1+i];
b = a.'
b=
2.0000 + 3.0000i
-1.0000 + 1.0000i
Buat matrix 2x3
X=[1 2 3;4 5 6]
Y=[1 2 ;3 4;5 6]
C = [1 2 3;4 5 NaN; 7 8 9]
MEMVISUALISASI KE 2D DAN
3D
Mencari tahu tipe vector plot yang tersedia
Membuat array dari text
Plotting Multiple Columns
Memvisualisasikan Matrix
Contoh 4
Contoh 5
Contoh 5
VISUALIZING SURFACE
Lihat
Contoh_09