Professional Documents
Culture Documents
clc
clear all
close all
%syarat awal 0 <= n =< 10
n = 1;
t = (1:10)/n;
x = (10*(0.17)*n)*t;
y = x*((-n))*11;
z = real (x);
%Create fungsi Real
z2 = imag (x);
%Create fungsi Imaginer
figure (1)
plot (t,y);
xlabel('Waktu (Sec)','FontSize',11); %Create Xlabel
ylabel('Magnitude','FontSize',11);
%Create Ylabel
figure (2)
subplot (2,1,1)
plot(t,z, 'r' )
xlabel('Waktu (Sec)','FontSize',11); %Create Xlabel
ylabel('Magnitude','FontSize',11);
%Create Ylabel
title({'GRAFIK FUNGSI REAL'},'FontSize',14); %Create Title
subplot (2,1,2)
plot(t,z2)
xlabel 'Waktu (Sec)', 'Fontsize'; 14; %Create Xlabel
ylabel 'Magnitude', 'Fontsize'; 14;
%Create Ylabel
title({'GRAFIK FUNGSI IMAGINER'},'FontSize',14); %Create Title