Pertemuan 1

Pertemuan 1 - Pertemuan 1 1A a =[3 2 1 4 5 6 b =[3 2 1;4 5...

This preview shows pages 1–3. Sign up to view the full content.

Pertemuan 1 1 A : a = [3 2 1 4 5 6] b = [3 2 1;4 5 6] pause a = [12 3 4] b = [1 2 3;4 5 6;7 8 9]; pause c = a*b pause a = [2 2 2; 2 2 2; 2 2 2]; b = [7 8 9; 1 2 3; 4 5 6]; c= a*b pause d = a/b pause e = a.*b pause length(a) c(1,1) pause n = 0:10 m = 0:2:10 pause for i=-10:10 x(i+11) = 2*(i^2); end plot(x) 1B: t = 0:0.005:2; x = 2*cos(2*pi*t ); subplot (3,1,1), plot(t,x) xlabel('time(sec)') ylabel('sinyal analog') pause n = 0:20; x = 5*cos(2*pi*0.005*n); subplot(3,1,2), stem(n,x) xlabel('time(sec)') ylabel('x[n]') title('sinyal discrite') subplot(3,1,3) xlabel('time(sec)') ylabel('amplitudo') title('plot suara') [y,Fs] = wavread('C:\Users\yohan\Documents\Sound Effect - Tiger Growl 01') N = length(y); ts = 1/Fs; t = (0:N-1)*ts plot(t,y); 1C : close; fs = 10000; ts = 1/fs; t = 0:ts:1; y = 2*sin(1*pi*1000*t)+. .. 5*sin(2*pi*3500*t)+sin(2*pi*4000*t); sound(y,fs); plot(t(1:100),y(1:100)) y = fft(y,1024); ym = abs (y); f = fs*(0:511)/1024; figure; plot(f,ym(1:512));

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Pertemuan 2 : 2 A : % Fungsi x[n]
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 11/14/2011 for the course DDDD h0322 taught by Professor Whoknow during the Spring '11 term at Bina Nusantara University.

Page1 / 3

Pertemuan 1 - Pertemuan 1 1A a =[3 2 1 4 5 6 b =[3 2 1;4 5...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online