Anda di halaman 1dari 2

1. A.

b. Fungsi perintah clf adalah untuk menghilangkan gambar saat ini


Fungsi perintah axis adalah untuk mengontrol skala dan tampilan sumbu
Fungsi perintah title adalah menggambar judul
Fungsi perintah xlabel adalah menunjukkan sumbu x
Fungsi perintah ylabel adalah menunjukkan sumbu y
c.
% Program P1_1
% Generation of a Unit Impulse Sequence
clf;
% Generate a vector from -10 to 20
n = -10:20;
% Generate the unit impulse sequence
u = [zeros(1,21) 1 zeros(1,9)];
% Plot the unit impulse sequence
stem(n,u);
xlabel('Time index n');ylabel('Amplitude');
title('Unit Sample Sequence');
axis([-10 20 0 1.2]);

d.
% Program P1_1
% Generation of a Unit Impulse Sequence
clf;
% Generate a vector from -10 to 20
n = -10:20;
% Generate the unit impulse sequence
u = [zeros(1,21) ones(1,10)];
% Plot the unit impulse sequence
stem(n,u);
xlabel('Time index n');ylabel('Amplitude');
title('Unit Sample Sequence');
axis([-10 20 0 1.2]);

e.
% Program P1_1
% Generation of a Unit Impulse Sequence
clf;
% Generate a vector from -10 to 20
n = -10:20;
% Generate the unit impulse sequence
u = [zeros(1,7) ones(1,24)];
% Plot the unit impulse sequence
stem(n,u);
xlabel('Time index n');ylabel('Amplitude');
title('Unit Sample Sequence');
axis([-10 20 0 1.2]);

1.2
a.
b. Parameter amplitude = k
parameter penyusutan pertumbuhan = n
c.

Anda mungkin juga menyukai